2 ms·
>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
by Arnavion 4y ago
>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.