You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead, I think we can just iterate over words and keep a count variable. For very large strings this would save the time and memory needed to alloc the list.
The text was updated successfully, but these errors were encountered:
sbadithe
changed the title
Potential unneeded memory alloc
Potential unneeded memory alloc in StopwordCountJul 30, 2022
exalate-issue-syncbot
changed the title
Potential unneeded memory alloc in StopwordCount
Potentially unneeded memory alloc in StopwordCountMar 15, 2023
I don't think we need to create a list in this comprehension:
nlp_primitives/nlp_primitives/stopword_count.py
Line 42 in 11837a5
Instead, I think we can just iterate over
words
and keep acount
variable. For very large strings this would save the time and memory needed to alloc the list.The text was updated successfully, but these errors were encountered: