You can parallelize this at the OS level. Modify the script so that it can accept a series of lines from your input file
$ reader_script --lines=10000:20000 mytable.txt
Then run multiple instances of the script.
$ reader_script --lines=0:10000 mytable.txt& $ reader_script --lines=10000:20000 mytable.txt& $ reader_script --lines=20000:30000 mytable.txt&
Unix will automatically distribute them to different kernels.
source share