7 ms·
I use it at work for a script that parses and analyzes some log files in an unusual format. Wrote a naive parser with a parsing combinator library. It was too s
by reftel 3y ago
I use it at work for a script that parses and analyzes some log files in an unusual format. Wrote a naive parser with a parsing combinator library. It was too slow to be usable with CPython. Tried PyPy and got a 50x speed increase (yes, 50 times faster). Very happy with the results, actually =)
- mattip 3y agoThanks for the feedback. It does seem like parsing logs and simulations is a sweet spot for PyPy
- _aavaa_ 3y agoSimulations are, at least in my experience, numba’s [0] wheelhouse. [0]: https://numba.pydata.org/ https://numba.pydata.org/
- zzzeek 3y agowhat cpython version and OS was that? I'd be very surprised if modern Python 3.11 has anything an order of magnitude slower like that. things have gotten much faster over the years in cpython