3 ms·
Probably has to do with using `try/catch` whis is not omptimized by V8. Different parser is 10 times faster on my machine. https://www.npmjs.com/package/csv-pa
by elmigranto 10y ago
Probably has to do with using `try/catch` whis is not omptimized by V8. Different parser is 10 times faster on my machine.
https://www.npmjs.com/package/csv-parser https://www.npmjs.com/package/csv-parser
Edit: `fast-csv` seems to be using a lot of `RegExp`s on each iteration which can't be that fast compared to csv-parser which seems to simply go over each symbol (state machine?).
- deno 10y ago4.95user 0.19system 0:05.22elapsed 98%CPU (0avgtext+0avgdata 29704maxresident)k A lot better but that’s still 5× slower than Python.