[NOT SOLVED] PB Editor is very, very slow, Why ??

Working on new editor enhancements?
marc_256
Enthusiast
Enthusiast
Posts: 743
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

[NOT SOLVED] PB Editor is very, very slow, Why ??

Post by marc_256 »

Why is the PB editor so very, very slow ?

I disabled all I know, but still very slow ?
What can I do to accelerate the PB editor ?
When I edit comment lines, NO PROBLEM
But when I edit lines with variables Names $*}@# :evil:

When I edit my programs in NOTEPAD++ all is very fast.
So, no PC speed problems.

Image

Image

Thanks,
marc
Last edited by marc_256 on Fri Jan 24, 2020 5:55 pm, edited 2 times in total.
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: PB Editor is very, very slow, Why ??

Post by PB »

> Why is the PB editor so very, very slow ?

Well, it's not. Otherwise everyone would be complaining.

You say it happens when you edit lines with variable names.
Can you post such a line so we can see what it consists of?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: PB Editor is very, very slow, Why ??

Post by IdeasVacuum »

It's always been a little bit slow for projects with thousands of lines of code, one of the reasons why I use an external editor (UltraEdit) instead, but I have not seen it being as slow as you describe Marc. Could it be that you have other apps running at the same time and there is very little memory left for PB? Could it be your Anti-Virus software (often is)? Could it be that you have a rogue PB process running (check via Task Manager)?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
marc_256
Enthusiast
Enthusiast
Posts: 743
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: PB Editor is very, very slow, Why ??

Post by marc_256 »

@PB
PB wrote:Well, it's not. Otherwise everyone would be complaining.
Well, not everyone is editing programs with >100.000 lines of code ?...
and 1000st of variables.
With programs with 5000 lines it work very well and fast.

@IdeasVacuum
IdeasVacuum wrote:It's always been a little bit slow for projects with thousands of lines of code
Yes, it was and is ...
one of the reasons why I use an external editor (UltraEdit) instead
I use NOTEPAD++, for now.
but I have not seen it being as slow as you describe Marc.
If i use the arrows to move the cursor it takes 0.25 sec to move one character ...
Could it be that you have other apps running at the same time and there is very little memory left for PB?
Total 8GB ram and only <2 GB used, thus 6 GB free for PB
Could it be your Anti-Virus software (often is)? Could it be that you have a rogue PB process running (check via Task Manager)?
If it is my anti virus, than i expect the same with NOTEPAD++
and no other program running.


I think it is more the variable name check in the program, but I can't switch this off.

Thanks,
marc
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: PB Editor is very, very slow, Why ??

Post by skywalk »

I also see "slow" editing with larger source files but no problem in Notepad++.
Did you try disabling automatic indentation?

Has anyone made a feature request to disable syntax checking?
Assuming that would that help speed...
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: PB Editor is very, very slow, Why ??

Post by IdeasVacuum »

Of course it's good to spread the source over as many .pbi files as is practical. I think you guys are right, the syntax checker probably does add lag time. Concerning Anti-Virus, I have found Ultra Edit and Notepad++ to be pretty well immune, but many of the other apps I use do get interrupted by AV (Avast, was same with MS Defender) - so they are now white-listed. Worth white-listing the PB program files folder and your source code folders.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
marc_256
Enthusiast
Enthusiast
Posts: 743
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: PB Editor is very, very slow, Why ??

Post by marc_256 »

skywalk wrote:Did you try disabling automatic indentation?
Yes, I did, but no difference at all ...
Has anyone made a feature request to disable syntax checking?
Assuming that would that help speed...
Thats what I think also, syntax checking !!
But can we disable it ?

marc,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: PB Editor is very, very slow, Why ??

Post by skywalk »

Maybe no difference since indentation only triggers after the [Enter] key.
Do you mind making a feature request to disable syntax check?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
marc_256
Enthusiast
Enthusiast
Posts: 743
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: PB Editor is very, very slow, Why ??

Post by marc_256 »

I just entered a question here
http://www.purebasic.fr/english/viewtop ... =3&t=60638

marc,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
Render
New User
New User
Posts: 2
Joined: Tue Apr 29, 2014 4:01 pm

Re: PB Editor is very, very slow, Why ??

Post by Render »

Mark, 100,000 lines of code a lot. Do not think that if you change one character of your program, all other characters remain static. Editor has to do a great job and overwrite or move all 100,000 rows. Even with the addition of the usual regular team, editor overwrites the entire code listing of the program, and this takes a lot of time. My kind advice to you: Share your program lines into separate files and connect them Includes Functions. For example: XIncludeFile "Filename". Personally, I'm always a structuring your code. 100,000 lines of code - it's almost impossible, most likely your line busy data type: DataSection. Arrange your data in a binary file and attach it to your program. But I think you yourself understand everything. Sorry for my English, I'm on it I can not write, your comment has translated through an interpreter.
User avatar
Blue
Addict
Addict
Posts: 864
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Re: PB Editor is very, very slow, Why ??

Post by Blue »

I realize that this reply comes very late, but i think it's pertinent.

Do you have active "Issues" rules in the IDE's Editor ?

Since the "Issues" feature must look at each line to find, identify and apply your "Issues" rules, it would significantly lenghten the loading time of source files in the Editor considerably.

That extra work is not required from Notepad, which, not having to look for and apply coloring rules in the text, will load it quickly. The same goes for Notepad++; free of the burden of "Issues" rules, it will unroll your source files much more quickly.
"That's not a bug..." said the programmer. "it's a feature! "
"Oh! I see..." replied the blind man.
marc_256
Enthusiast
Enthusiast
Posts: 743
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

[SOLVED] PB Editor is very, very slow, Why ??

Post by marc_256 »

Hi everyone,

I find out what the problem is ...
After some time not using PB,
and to make some changes in a very large older program,
I had the same problem again,
So I took some time to find out why ...
And YES,

this is the problem:
Image

So, if I use the Procedures and Variable viewer PB ide becomes very, very slow,
without them, PB editor works very well, even with big programs.

It seems that PB editor is checking the variable and procedure lists every time a key is pushed.
even if I only push the enter key to add an empty line.

marc
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: [SOLVED] PB Editor is very, very slow, Why ??

Post by IdeasVacuum »

Hi Marc

Good to know, thank you - hard to believe how many years have passed by!
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
marc_256
Enthusiast
Enthusiast
Posts: 743
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: [SOLVED] PB Editor is very, very slow, Why ??

Post by marc_256 »

IdeasVacuum wrote:Hi Marc

Good to know, thank you - hard to believe how many years have passed by!
Hi IdeasVacuum;

Yes, a lot of time passed by,
I never had a good answer for this problem, so I used NOTEPAD++ for all that time.

I quit PB for some time now, but i see that in the 3D part "pf shadoko" is doing good work.
So, I'm coming back, be course I love PB.

marc
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
User avatar
Michael Vogel
Addict
Addict
Posts: 2666
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: [SOLVED] PB Editor is very, very slow, Why ??

Post by Michael Vogel »

I've disabled all 'Tool Panels' the whole time - most of the functions can be solved simply by adding a program into the 'Tools' menu...

...the only speeding issue I am observing is given by moving the cursor up and down because of the syntax folding. Not sure if the folding algorithm could be tuned here and there (maybe caching or reducing the number of key words would help).
Post Reply