2 ms·
I wonder how fast you can make the Python version. For example by not producing intermediate lists with .split(delim). This produced a significant speedup in th
by adrianN 9y ago
I wonder how fast you can make the Python version. For example by not producing intermediate lists with .split(delim). This produced a significant speedup in the D version, it should do the same in the Python version.
- maxerickson 9y agocollections.Counter in Python 2.7 was not speedy at the time of this Stack Overflow question: https://stackoverflow.com/questions/27801945/surprising-results-with-python-timeit-counter-vs-defaultdict-vs-dict https://stackoverflow.com/questions/27801945/surprising-resu... Another likely optimization would be to use the csv module (which would parse the rows in C).