Sixdsn / terra-terminal

Terra is a GTK+3.0 based terminal emulator with useful user interface, it also supports multiple terminals with splitting screen horizontally or vertically. New features have been added since September 2013. It's a pretty new and experimental project, if you want to contribute just checkout and try.
GNU General Public License v3.0
7 stars 3 forks source link

bad typing performance #120

Open imammedo opened 8 years ago

imammedo commented 8 years ago

When system somewhat busy, typing lags significantly (~1sec in my case) which makes it unusable. That doesn't happen with gnome-terminal in the same conditions.

Reason for problem is that terra, calls following chain for every typed character: update_content[71.32%]->update_ui[71.29%]->get_running_cmd[70.78%] where get_running_cmd forks/executes several external commands which is very expensive. Call graph from is attached below (github's embedded image doesn't seem to work so here is external link: http://postimg.org/image/pi9prcyxn/)

call_graph

commenting out get_running_cmd() makes things better but that's rather hack to get by than real fix.