Forum Discussion
hlalumiere
14 years agoRegular Contributor
While most of the performance issues seem to be gone with build 9.10, one remains.
Every time I type a character in any editor window of TC9, CPU usage goes to 100% for at least 1-2 seconds. Fortunately duration does not "stack", but I find it quite bizarre to analyze the contents of a script file at every single keypress.
As noted above, if this is the syntax checker, it should be checking once every N seconds, on a timer. Checking every keypress makes for very poor response time while typing code. In some instances, holding Shift gets delayed because of this.
For example:
While typing some sentence or code, try inserting a Cap Somewhere in there.
If I were to type this normally in the TC9 editor, sometimes it would come out as:
While typing some sentence or code, try inserting a cAP somEWHere in there.
I am working on a VM with only one vCPU, so maybe that has something to do with it, however putting anything longer than 1-2 lines of code in a keypress event is a big no-no in any case.
Every time I type a character in any editor window of TC9, CPU usage goes to 100% for at least 1-2 seconds. Fortunately duration does not "stack", but I find it quite bizarre to analyze the contents of a script file at every single keypress.
As noted above, if this is the syntax checker, it should be checking once every N seconds, on a timer. Checking every keypress makes for very poor response time while typing code. In some instances, holding Shift gets delayed because of this.
For example:
While typing some sentence or code, try inserting a Cap Somewhere in there.
If I were to type this normally in the TC9 editor, sometimes it would come out as:
While typing some sentence or code, try inserting a cAP somEWHere in there.
I am working on a VM with only one vCPU, so maybe that has something to do with it, however putting anything longer than 1-2 lines of code in a keypress event is a big no-no in any case.