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
Post a Comment