Slow IDE - Coloring and Issues
Posted: Fri Mar 07, 2025 5:05 pm
Here is just a short description of my problems with the IDE, maybe it will help someone else.
I have a slow PC and therefore have problems with the IDE. Normal programming is no longer possible with my current project. The IDE is so slow that inputs such as a line break take ~ 1.5 seconds. Jumping from the beginning of a file with 17,000 lines to the end with CTRL+END takes eight seconds, then only two seconds each time. I have found two places that cause the problems.
Jumping in the file via keyboard or procedure list is slowed down by the coloring of the code, no matter how the color settings are set in the preferences.
If I comment out the call of the two lines 'HighlightingEngine(..., @HighlightCallback(), ...)' in 'ScintillaHighlighting.pb' in the source code of the IDE, the jumping works without delay. The source code is then no longer colored. Since I only use the comments and issues in color, this is no great loss. And I have never used bold font for keywords anyway.
The slow editing was caused by the issues. I have the issues displayed in the ToolsPanel and ~ 500 issues in my project. The setting for viewing the issues only from the current file, or the whole project did not change much. Only removing the issues from the ToolsPanel helped.
The procedure 'UpdateIssueList()' is called by 'UpdateProcedureList()' in 'ProcedureBrowser.pb', and this happens all the time when editing the code.
So after several hours of searching for the causes, I can get back to programming.
Peter
I have a slow PC and therefore have problems with the IDE. Normal programming is no longer possible with my current project. The IDE is so slow that inputs such as a line break take ~ 1.5 seconds. Jumping from the beginning of a file with 17,000 lines to the end with CTRL+END takes eight seconds, then only two seconds each time. I have found two places that cause the problems.
Jumping in the file via keyboard or procedure list is slowed down by the coloring of the code, no matter how the color settings are set in the preferences.
If I comment out the call of the two lines 'HighlightingEngine(..., @HighlightCallback(), ...)' in 'ScintillaHighlighting.pb' in the source code of the IDE, the jumping works without delay. The source code is then no longer colored. Since I only use the comments and issues in color, this is no great loss. And I have never used bold font for keywords anyway.
The slow editing was caused by the issues. I have the issues displayed in the ToolsPanel and ~ 500 issues in my project. The setting for viewing the issues only from the current file, or the whole project did not change much. Only removing the issues from the ToolsPanel helped.
The procedure 'UpdateIssueList()' is called by 'UpdateProcedureList()' in 'ProcedureBrowser.pb', and this happens all the time when editing the code.
So after several hours of searching for the causes, I can get back to programming.
Peter