Robert Roessler wrote:
Thanks for looking at this in some detail, Neil... while things sound sort of grim, it isn't really clear your results make any sense - you can see how simple the code is, and memory-to-memory pixmap copying will presumably not cost *more* than full text rendering of the same string (even *if* the text rendering engine is caching some of the glyphs).

It may be that you're duplicating caching that's already done at lower levels in the rendering level and the lower levels do it more directly. There is also the client/server aspect of X11 that may play a factor. I'm speculating here; I haven't compiled this or looked closely at what's going on.

What's odd is text measurement is slower and I don't see where the cache is used during measurement. You could try looking at locking -- is any of this called when the gdk global lock not held? If not, you could simply rely on that to ensure only one thread is running at a time.

John
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to