3 ms·
It 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 wit
by merlincorey 8y ago
It 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?