Page 1 of 1

Slow IDE - Coloring and Issues

Posted: Fri Mar 07, 2025 5:05 pm
by PeDe
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

Re: Slow IDE - Coloring and Issues

Posted: Fri Mar 07, 2025 5:16 pm
by HeX0R
You don't have the "1&1 smartdrive (upload manager)" installed, do you?

Re: Slow IDE - Coloring and Issues

Posted: Fri Mar 07, 2025 5:52 pm
by PeDe
No, I have not installed it. Nor have I installed a virus protection program or anything similar.
For example, I can edit the source code of the IDE relatively normally, although it has 30,000 lines more than my project. However, the code only contains 56 issues.

Peter

Re: Slow IDE - Coloring and Issues

Posted: Fri Mar 07, 2025 7:17 pm
by PeDe
I have now also commented out the procedure 'UpdateIssueList()' in 'UpdateProcedureList()', and the IDE is now fast again. The issues are updated when the issues window is opened or when the filter is changed, that's enough for me.

Peter

Re: Slow IDE - Coloring and Issues

Posted: Fri Mar 07, 2025 10:59 pm
by HeX0R
Wait a minute, I must not have read it carefully, you mean you have a project with ~500 issues?
Guess no one expected that, there might be room for improvement in the IDE then.
If one of my projects had ~500 issues, I'd cancel it most likely :lol:

Re: Slow IDE - Coloring and Issues

Posted: Sat Mar 08, 2025 12:45 am
by Quin
HeX0R wrote: Fri Mar 07, 2025 10:59 pm If one of my projects had ~500 issues, I'd cancel it most likely :lol:
To be fair, I myself use the issues tool for todos and little notes as well as actual issues :wink:

Re: Slow IDE - Coloring and Issues

Posted: Sat Mar 08, 2025 6:25 am
by PeDe
Hello HeX0R,
HeX0R wrote: Fri Mar 07, 2025 10:59 pm Wait a minute, I must not have read it carefully, you mean you have a project with ~500 issues?
Here is a screenshot of the IDE with the issues.
https://www.dreisiebner.at/temp/PB_IDE-Issues.png
With the colored procedure list, the issues are easily recognizable, and with the filter you can quickly display only the desired issues even without the issue tool window. As Quin writes, I use the issues as information.

Peter

Re: Slow IDE - Coloring and Issues

Posted: Sat Mar 08, 2025 1:00 pm
by BarryG
PeDe wrote: Sat Mar 08, 2025 6:25 amWith the colored procedure list [...]
Is that a third-party tool? Looks like it to me (my procedure list doesn't have those buttons on the bottom), and so this is probably the cause of your slowness. Use a clean install of PureBasic to test.

Re: Slow IDE - Coloring and Issues

Posted: Sat Mar 08, 2025 1:24 pm
by Axolotl
BarryG wrote: Sat Mar 08, 2025 1:00 pm Is that a third-party tool?
Kind of.... but it is part of the official release.
See the Announcement topic below for further information....
PureBasic 6.20 beta 2 is out !
The whole story: Integrated 'Multicolored Procedure List' in IDE

And yes, with this activated, the IDE is noticeable slower.

Re: Slow IDE - Coloring and Issues

Posted: Sat Mar 08, 2025 5:38 pm
by PeDe
Axolotl wrote: Sat Mar 08, 2025 1:24 pm And yes, with this activated, the IDE is noticeable slower.
Yes the colored procedure list is slower, but I don't notice any slowdown when using it. Here are two speed measurements on my slow PC (Intel Celeron J1900 1.33 GHz).
https://www.dreisiebner.at/temp/PB_Proc ... olored.png
https://www.dreisiebner.at/temp/PB_Proc ... andard.png
Decimal point and grouping is in German for the values.

Peter

Re: Slow IDE - Coloring and Issues

Posted: Sun Mar 09, 2025 1:42 am
by BarryG
Axolotl wrote: Sat Mar 08, 2025 1:24 pmit is part of the official release
Oh, right. I see it in 6.20 now (never noticed it before). So, I tested my large app in it and I get no slowdown in the IDE at all.