[Qt-interest] Reading data from ASCII file

yogesh upreti yogesh.upreti at gmail.com
Sun Apr 10 23:43:31 CEST 2011


Hi Group,
I am trying to convert some of my Text file manipulating, non GUI perl
scripts to GUI based Qt codes.
During these I have to read data out of around 20-50 mb text files, check
some patterns in every line and show them in better form.

Now problem is that a perl program takes around 3.5 sec to read a 15 mb file
and do all the manipulation and show the results in  command line.

and a Qt program is taking around 7 Sec just to read the data simply,
without and pattern search or something.

I was using QTextStream to read the files, but after some research I am
using QFile directly. with this I have reduced the reading time.


But still I am not able to match the time with perl script. Do anyone have
any suggestion??

Thanks in advance

Yogesh Upreti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110410/52f08bf4/attachment.html 


More information about the Qt-interest-old mailing list