News for hackers. Stuff that matters.
Re:Does C++ still deserve a bad rap? by dmortin on Saturday October 17, 2020 @03:22AM (#24808105)
> I had a few Python scripts that spend several seconds parsing larger files, after a rewrite to c++ that changed to almost instant.

It depends on the task. If the parsing is done once a day then several seconds is nothing, so there is no point in using C++.

If the parser is running very frequently then of course one uses a faster implementation.

Re:Does C++ still deserve a bad rap? by josefx on Saturday October 17, 2020 @04:43AM (#24808514)
In my case it lead to a reverse on that reasoning. The script ended up being an explicit step to import the data when it changed instead of running implicitly whenever the data was needed. Of course that choice was based on the initial version which was even slower and didn't use multiprocessing to handle the files in parallel.