Reading a Large file takes too long
I'm trying to improve the current situation on reading large files. I have a file that has around 100mbs of CSV - it takes in debug mode around 7 seconds, and in Release mode 2 seconds to read. The callgrind output in debug mode is too large to be attached, the release mode one is not as good:
Obvously the issue is inside the readFile / readLine, I spend a bit of time trying to solve but failed. Help is appreciated :)