I do not want to be rude. I just hope to help and clarify: You mentioned in the answer that reading is not a problem, and there is a problem with the win32 guy. But I really doubt it.
First, access to the disk is monumentally slow compared to something related to the graphical interface. Even if you set a certain amount of text in the EDIT field, it is essentially only memcpy and repaint.
There is a bit of processing. You need to go through the line to find new lines. And if you wrap a word, it will have to continue to add the next letter width until you go beyond the allowable width. But both of them are quite agile compared to reading from disk.
So, are you really sure that this is a GUI speed issue, not a read issue? Can you provide time for both? Itβs just hard for me to believe that the GUI here is a problem ...
source share