News for hackers. Stuff that matters.
Re:Performance comparison: counting words in Python, C/C++, ... by Arnavion on Sunday July 24, 2022 @09:28PM (#32219606)
>I had a 1 minute look at the "optimized" C code - it's calling malloc for every word.

Neither simple.c nor optimized.c call malloc "for every word". They only call malloc when inserting a previously-unseen word into the counting map.

There are no comments on this comment yet.