wxwidgets - Why is wxTextCtrl so slow at displaying text? -


i have wxtextctrl , need put large string it. (like 15 mb string) problem it's slow. here i'm doing:

char * buff = ... wxstring data(buff, wxconvutf8); text->changevalue(data); 

however, not bottleneck. occurrs function block of code in returns. whole app freezes 30 seconds. tried wxyield right after changevalue , causes first few lines of string displayed in control still freezes after. how can avoid this?

i must stress changevalue returns instantaneously. delay happens after this, in wxtextctrl's internal message handlers or something.

wxtextctrl wraps standard text control of os only, limits has apparent wxtextctrl well. can use wxstyledtextctrl instead, able load multi-megabyte texts , doesn't take long it. highlight portions of log styling them (for example error messages in read), increase loading time again.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -