Skip to content

DOC CountVectorizer: Add note on List[int] memory usage for #13062 #31627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

VirenPassi
Copy link
Contributor

This PR adds a note to CountVectorizer highlighting that for small documents, using List[int] internally can lead to better memory efficiency compared to array.array('i'). This observation was based on a benchmark run during the investigation of #13062.

No code changes are introduced — documentation only.

Fixes #13062

Copy link

github-actions bot commented Jun 22, 2025

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: f4e8bca. Link to the linter CI: here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-evaluate memory usage in CountVectorizer
1 participant