Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] swt on gtk slow

Bradley Schatz wrote:
Any suggestions on how to get eclipse running as snappily as it does on
windows when running swt/gtk?

thanks



Suggestion for the SWT developers:

The editor under GTK is painfully slow and I suspect
pango is to blame for this. When drawing the editor
a lot of slow GC.drawText calls are made. Each time
a GC.drawText call are made pango has to do a slow
relayout calculation because SWT is using the same
pango layout for all GC.drawText calls. Perhaps it
would be faster to implement some kind of cache of
layouts.

For example when displaying a typical java source
file, it contains a lot of "if"'s, "while"'s, "int"'s,
equal-signs, parentheses,...
If it were possible to get a previously calculated
pango-layout of the same text and font, the drawing
would theoretically be faster. But would it be faster
than the added maintenance of the cache?

What do you think about this approach?

Steen Jansdal



Back to the top