Click here to Skip to main content
15,890,512 members

Comments by xuyunhai20160827 (Top 9 by date)

xuyunhai20160827 9-Jan-17 3:29am View    
funny
xuyunhai20160827 3-Jan-17 21:51pm View    
Deleted
Why I don't use this method of File.ReadAllLines is that it takes 28 seconds to read the 300MB file, and the Third party software takes about 10 seconds
So I used the MemoryMappedFile technology, but unfortunately, the 300MB file size out of memory error.
xuyunhai20160827 3-Jan-17 21:32pm View    
I tried your code just now,there's two questions.
1.The same computer, open a 300MB file size, takes about 28 seconds, while the third party software takes only about 10 seconds, I want to do with the performance of the same as the third party software.
2.If you use ReadAllText or ReadAllLines to read the data and load it into LISTVIEW, then I can't know the loading progress.
So I used the MemoryMappedFile technology, the fastest way of reading,but unfortunately, the 300MB file size out of memory error.
and now ,how to slove,thanks for your answer.

you can also read this arctics
Link as below:
http://stackoverflow.com/questions/4273699/how-to-read-a-large-1-gb-txt-file-in-net
xuyunhai20160827 3-Jan-17 4:32am View    
I need to read one line by one line and show it in ListView
xuyunhai20160827 28-Dec-16 4:18am View    
If I know how to do it, I would have done it, then what is the idea of the algorithm。
How can I redraw the parts I need instead of re painting?