[NOT SOLVED] PB Editor is very, very slow, Why ??
[NOT SOLVED] PB Editor is very, very slow, Why ??
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 $*}@#
When I edit my programs in NOTEPAD++ all is very fast.
So, no PC speed problems.
Thanks,
marc
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 $*}@#
When I edit my programs in NOTEPAD++ all is very fast.
So, no PC speed problems.
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 ...
PS: sorry for my english I speak flemish ...
Re: PB Editor is very, very slow, Why ??
> 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?
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.
"PureBasic won't be object oriented, period" - Fred.
-
- Always Here
- Posts: 6425
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: PB Editor is very, very slow, Why ??
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.
If it sounds simple, you have not grasped the complexity.
Re: PB Editor is very, very slow, Why ??
@PB
and 1000st of variables.
With programs with 5000 lines it work very well and fast.
@IdeasVacuum
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
Well, not everyone is editing programs with >100.000 lines of code ?...PB wrote:Well, it's not. Otherwise everyone would be complaining.
and 1000st of variables.
With programs with 5000 lines it work very well and fast.
@IdeasVacuum
Yes, it was and is ...IdeasVacuum wrote:It's always been a little bit slow for projects with thousands of lines of code
I use NOTEPAD++, for now.one of the reasons why I use an external editor (UltraEdit) instead
If i use the arrows to move the cursor it takes 0.25 sec to move one character ...but I have not seen it being as slow as you describe Marc.
Total 8GB ram and only <2 GB used, thus 6 GB free for PBCould it be that you have other apps running at the same time and there is very little memory left for PB?
If it is my anti virus, than i expect the same with NOTEPAD++Could it be your Anti-Virus software (often is)? Could it be that you have a rogue PB process running (check via Task Manager)?
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 ...
PS: sorry for my english I speak flemish ...
Re: PB Editor is very, very slow, Why ??
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...
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
-
- Always Here
- Posts: 6425
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: PB Editor is very, very slow, Why ??
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.
If it sounds simple, you have not grasped the complexity.
Re: PB Editor is very, very slow, Why ??
Yes, I did, but no difference at all ...skywalk wrote:Did you try disabling automatic indentation?
Thats what I think also, syntax checking !!Has anyone made a feature request to disable syntax checking?
Assuming that would that help speed...
But can we disable it ?
marc,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
PS: sorry for my english I speak flemish ...
Re: PB Editor is very, very slow, Why ??
Maybe no difference since indentation only triggers after the [Enter] key.
Do you mind making a feature request to disable syntax check?
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
Re: PB Editor is very, very slow, Why ??
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
PS: sorry for my english I speak flemish ...
Re: PB Editor is very, very slow, Why ??
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.
Re: PB Editor is very, very slow, Why ??
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.
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.
"Oh! I see..." replied the blind man.
[SOLVED] PB Editor is very, very slow, Why ??
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:
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
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:
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 ...
PS: sorry for my english I speak flemish ...
-
- 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 ??
Hi Marc
Good to know, thank you - hard to believe how many years have passed by!
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.
If it sounds simple, you have not grasped the complexity.
Re: [SOLVED] PB Editor is very, very slow, Why ??
Hi IdeasVacuum;IdeasVacuum wrote:Hi Marc
Good to know, thank you - hard to believe how many years have passed by!
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 ...
PS: sorry for my english I speak flemish ...
- Michael Vogel
- Addict
- Posts: 2677
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: [SOLVED] PB Editor is very, very slow, Why ??
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).
...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).