Simon Tatham
c3ef30c883
Performance: cache character widths returned from Pango.
...
Profiling reveals that pterm in Pango rendering mode uses an absurd
amount of CPU when it's not even actually _drawing_ the text, because
of all the calls to pango_layout_get_pixel_extents() while
pangofont_draw_text tries to work out which characters it can safely
draw as part of a long string. Caching the results speeds things up
greatly.
2015-08-23 14:16:18 +01:00
..
2014-02-22 18:01:32 +00:00
2015-08-16 14:50:37 +01:00
2015-05-08 18:57:18 +01:00
2015-08-16 14:50:48 +01:00
2015-08-08 17:55:10 +01:00
2015-08-22 14:07:02 +01:00
2015-08-22 14:57:54 +01:00
2015-08-23 14:16:18 +01:00
2015-08-16 13:11:06 +01:00
2015-08-22 14:11:45 +01:00
2015-08-22 14:07:02 +01:00
2011-07-14 18:52:21 +00:00
2015-05-11 17:52:19 +01:00
2011-07-14 18:52:21 +00:00
2015-05-15 12:47:44 +01:00
2013-07-14 10:46:07 +00:00
2011-07-14 18:52:21 +00:00
2015-05-18 21:17:21 +01:00
2015-05-18 14:03:10 +01:00
2009-09-16 22:28:20 +00:00
2015-05-18 14:03:10 +01:00
2015-08-16 13:11:51 +01:00
2015-08-16 13:11:51 +01:00
2010-02-20 11:21:25 +00:00
2015-05-18 14:03:10 +01:00
2015-05-15 12:47:44 +01:00
2015-08-22 15:05:12 +01:00
2015-08-22 14:07:02 +01:00
2015-08-16 13:11:51 +01:00
2015-05-15 12:47:44 +01:00
2015-08-16 13:11:51 +01:00
2015-05-05 20:16:22 +01:00
2004-12-31 13:02:46 +00:00
2015-08-10 20:03:41 +01:00
2015-05-15 12:47:44 +01:00
2003-04-27 11:10:48 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00