3 ms·
It's also provides great benefits for quick scripts. I had to write a one-off parser for a big csv file, that needed to be parsed lots of times, and fast. Pure
by hakanderyal 11y ago
It's also provides great benefits for quick scripts.
I had to write a one-off parser for a big csv file, that needed to be parsed lots of times, and fast. Pure python solution was taking a few minutes, so I decided to give Cython a try. Installed, read the docs for a few minutes, converted my parser's inner loop to cython, and the duration went down to a few seconds.
- ngoldbaum 11y agoThe "%%cython" magic for the IPython notebook is great for quickly prototyping cython code in the context of a larger Python workflow. You can also view a nice annotated HTML performance report with "%%cython -a".