SublimePTY icon indicating copy to clipboard operation
SublimePTY copied to clipboard

.apply_colors() performance

Open wuub opened this issue 12 years ago • 0 comments

It's too slow! :-)

diff refresh: http://i.imgur.com/e9A78.png full refresh: http://i.imgur.com/Strkc.png

add_regions() and erase_regions() are called for each one character, making it totaling at 2_ROWS_COLS method calls each refresh. We could check if agregating all regions with the same color eg. "red.default" under a single add_regions() fixes anything.

wuub avatar May 15 '12 11:05 wuub