2 ms·
Can anyone comment on the efficiency or lack thereof of toolz?
by pmiller2 8y ago
Can anyone comment on the efficiency or lack thereof of toolz?
- merlincorey 8y agoIt uses `itertools` internally very heavily, which means if you generally are using generators and such, you maintain those benefits, as well as get to work with infinite sequences, etc. If you do find a `toolz` function to be too slow, there's always the `cytoolz` versions.
- stochastic_monk 8y agocytoolz’s frequencies was around 10x as fast as using a vanilla dict and counting elements manually, which was in turn twice as fast as collections.Counter when I measured them a few years ago. It’s solid work.
- webmaven 8y agoHow does cytoolz performance compare with toolz under PyPy?