wxTextCtrl slow on massively multiple SetStyles

Hunter Peress wrote:

Maybe you didnt run it on a sufficiently large file. try 400 lines +

I found that TextCtrl misbehaved also once you had more than about
64kb of data in it (both on Windows and Linux). For example I
had set it up to used fixed pitch font, and it would suddenly
go back to variable pitch in the middle of my text. Similarly
I was highlighting some data (using it as a hexviewer) and
that got real slow just as you experienced.

My solution was to write my own control. Things are considerably
easier because my data was fixed width per line, and it isn't that
hard to do.

Roger