Hi
I have a windows form which to summarize lets the user open a file containing 32 bit hashes, then search for one of them. The hash is then converted to its string representation.
The application is giving the results I would expect but I'd like to make it execute faster than it does now; some files can be pretty big > 100 MB. I'm doing the file read using a BackgroundWorker object to display progress updates and ensure that the UI is available during the process. But for that i need to add a System.Threading.Sleep(1) instruction in the loop; otherwise the application freezes with big files. And System.Threading.Sleep(1) creates a noticeable lag..
Any suggestions on how to make searches fast without freezing the UI? Getting speeds comparable to hex editor programs for example.
If source code is required i can post.
I have a windows form which to summarize lets the user open a file containing 32 bit hashes, then search for one of them. The hash is then converted to its string representation.
The application is giving the results I would expect but I'd like to make it execute faster than it does now; some files can be pretty big > 100 MB. I'm doing the file read using a BackgroundWorker object to display progress updates and ensure that the UI is available during the process. But for that i need to add a System.Threading.Sleep(1) instruction in the loop; otherwise the application freezes with big files. And System.Threading.Sleep(1) creates a noticeable lag..
Any suggestions on how to make searches fast without freezing the UI? Getting speeds comparable to hex editor programs for example.
If source code is required i can post.