Slow IDE - Coloring and Issues

Working on new editor enhancements?
PeDe
Enthusiast
Enthusiast
Posts: 284
Joined: Sun Nov 26, 2017 3:13 pm

Slow IDE - Coloring and Issues

Post 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
User avatar
HeX0R
Addict
Addict
Posts: 1204
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Slow IDE - Coloring and Issues

Post by HeX0R »

You don't have the "1&1 smartdrive (upload manager)" installed, do you?
PeDe
Enthusiast
Enthusiast
Posts: 284
Joined: Sun Nov 26, 2017 3:13 pm

Re: Slow IDE - Coloring and Issues

Post 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
PeDe
Enthusiast
Enthusiast
Posts: 284
Joined: Sun Nov 26, 2017 3:13 pm

Re: Slow IDE - Coloring and Issues

Post 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
User avatar
HeX0R
Addict
Addict
Posts: 1204
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Slow IDE - Coloring and Issues

Post 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:
Quin
Addict
Addict
Posts: 1133
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: Slow IDE - Coloring and Issues

Post 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:
PeDe
Enthusiast
Enthusiast
Posts: 284
Joined: Sun Nov 26, 2017 3:13 pm

Re: Slow IDE - Coloring and Issues

Post 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
BarryG
Addict
Addict
Posts: 4173
Joined: Thu Apr 18, 2019 8:17 am

Re: Slow IDE - Coloring and Issues

Post 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.
Axolotl
Addict
Addict
Posts: 837
Joined: Wed Dec 31, 2008 3:36 pm

Re: Slow IDE - Coloring and Issues

Post 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.
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
PeDe
Enthusiast
Enthusiast
Posts: 284
Joined: Sun Nov 26, 2017 3:13 pm

Re: Slow IDE - Coloring and Issues

Post 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
BarryG
Addict
Addict
Posts: 4173
Joined: Thu Apr 18, 2019 8:17 am

Re: Slow IDE - Coloring and Issues

Post 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.
Post Reply