Theia: Changing the color theme is slow

Created on 3 Aug 2018  路  10Comments  路  Source: eclipse-theia/theia

help wanted terminal

All 10 comments

Was able to reproduce it with an opened terminal

AFAIK the terminal has a tendency to slow everything down... The theme changing is mostly just adding/removing style html tags, so I wonder how much faster this could be made.

screen shot 2018-08-07 at 16 07 49

Are we still using an Xterm fork? How difficult would it be to try out a few modifications?

There is another minor glitch with this, when the user does Ctrl/Cmd+P > Change Color Theme

Then the currently used theme is set again. It is unnecessary.

Do nothing and close the Command Palette (Esc), then we set again the current theme. I think the logic should be a bit smarter and not set the value if the current theme is the same as we want to set. (Other solutions are good too.)

https://github.com/theia-ide/theia/blob/cda47a7f47533fd6e1d591ca0fc61f254f063473/packages/core/src/browser/theming.ts#L149-L153

You should switch to the dynamic char atlas, this should fix this problem for the most part as well as improve perf across the board. This was introduced in v3.4 https://github.com/xtermjs/xterm.js/releases/tag/3.4.0, we're also replacing the static char atlas with it soon https://github.com/xtermjs/xterm.js/issues/1576

@Tyriar thanks for the heads up, we will try

I don't have time to try out https://github.com/theia-ide/theia/issues/2503#issuecomment-440364041, if someone can open a PR with changes it would be very welcomed!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tetchel picture tetchel  路  3Comments

cekvenich picture cekvenich  路  3Comments

vinokurig picture vinokurig  路  3Comments

jankeromnes picture jankeromnes  路  3Comments

vince-fugnitto picture vince-fugnitto  路  3Comments