I\'ve got a program that reads in 3 strings per line for 50000. It then does other things. The part that reads the file and converts to integers is taking 80% of the total r
I can't reproduce this at all.
I have generated a file of 50000 lines, containing three random numbers (two ints, one float) on each line, separated by spaces.
I then ran your script on that file. The original script finishes in 0.05 seconds on my three-year-old PC, the script with the uncommented line takes 0.15 seconds to finish. Of course it takes longer to do string to int/float conversions, but certainly not at the scale of several seconds. Unless your target machine is a toaster running embedded Windows CE.