15,890,512 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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?
xuyunhai20160827
28-Dec-16 0:58am
View
Can you give me an example, this problem has troubled me for a long time
xuyunhai20160827
22-Sep-16 5:57am
View
for example,when you use richtextbox.LoadFile,how to show the progress of the load file?
where is the progress value?
you can try,and then reply to me,not just reply without try.
xuyunhai20160827
22-Sep-16 5:14am
View
i'm not mean like this.
progressbar is compenent to show,but i need calculate richtextbox.text.leng/FileInfo(filepathe).Length,and give the result to progreesbar.value.
but how to calculate the result when use the method as above?
xuyunhai20160827
9-Sep-16 20:37pm
View
when i read file about 27M use File.ReadAllText, but it also takes about 17 minutes,can any other way to update speed
Show More