jesse_mark
1st November 2013, 20:17
Hello ,
Im trying to read a big file, but i want to find what is the best way to do so.
I ma not worry about the memory as it will be used on machines that have big memory enough to read the whole file at once.
right now im using textStream to read all in one time, but it still not fast and take time to do so, is there a way to read the file in parallel into QStringList and still keep the order of the lines ??
some are saying I can not get speed up as I am limited with the disk header to read, and having multiple threads reading from different location in the file will not benefit my performance much.
Please if anyone have an idea of what is the best way to read the file in memory in parallel or faster way help me.
Thank you.
Im trying to read a big file, but i want to find what is the best way to do so.
I ma not worry about the memory as it will be used on machines that have big memory enough to read the whole file at once.
right now im using textStream to read all in one time, but it still not fast and take time to do so, is there a way to read the file in parallel into QStringList and still keep the order of the lines ??
some are saying I can not get speed up as I am limited with the disk header to read, and having multiple threads reading from different location in the file will not benefit my performance much.
Please if anyone have an idea of what is the best way to read the file in memory in parallel or faster way help me.
Thank you.