It is currently Wed Apr 24, 2019 5:01 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: [SOLVED] PB Editor is very, very slow, Why ??
PostPosted: Sat Sep 27, 2014 12:42 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 06, 2010 10:16 am
Posts: 527
Location: Belgium
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

_________________
Greetings from Pajottenland - Belgium
PS: sorry for my english I speak flemish ...
www.marc-systems.be


Last edited by marc_256 on Tue Apr 09, 2019 9:35 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: PB Editor is very, very slow, Why ??
PostPosted: Sat Sep 27, 2014 1:06 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Fri Apr 25, 2003 5:24 pm
Posts: 7581
> 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.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB Editor is very, very slow, Why ??
PostPosted: Sat Sep 27, 2014 1:17 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5790
Location: Wales, UK
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB Editor is very, very slow, Why ??
PostPosted: Sat Sep 27, 2014 2:27 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 06, 2010 10:16 am
Posts: 527
Location: Belgium
@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 ...

Quote:
one of the reasons why I use an external editor (UltraEdit) instead

I use NOTEPAD++, for now.

Quote:
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 ...

Quote:
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

Quote:
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

_________________
Greetings from Pajottenland - Belgium
PS: sorry for my english I speak flemish ...
www.marc-systems.be


Top
 Profile  
Reply with quote  
 Post subject: Re: PB Editor is very, very slow, Why ??
PostPosted: Sat Sep 27, 2014 2:46 pm 
Online
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 2907
Location: Boston, MA
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


Top
 Profile  
Reply with quote  
 Post subject: Re: PB Editor is very, very slow, Why ??
PostPosted: Sat Sep 27, 2014 3:39 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5790
Location: Wales, UK
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB Editor is very, very slow, Why ??
PostPosted: Sat Sep 27, 2014 4:45 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 06, 2010 10:16 am
Posts: 527
Location: Belgium
skywalk wrote:
Did you try disabling automatic indentation?

Yes, I did, but no difference at all ...

Quote:
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,

_________________
Greetings from Pajottenland - Belgium
PS: sorry for my english I speak flemish ...
www.marc-systems.be


Top
 Profile  
Reply with quote  
 Post subject: Re: PB Editor is very, very slow, Why ??
PostPosted: Sat Sep 27, 2014 4:48 pm 
Online
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 2907
Location: Boston, MA
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


Top
 Profile  
Reply with quote  
 Post subject: Re: PB Editor is very, very slow, Why ??
PostPosted: Sat Sep 27, 2014 6:49 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 06, 2010 10:16 am
Posts: 527
Location: Belgium
I just entered a question here
http://www.purebasic.fr/english/viewtopic.php?f=3&t=60638

marc,

_________________
Greetings from Pajottenland - Belgium
PS: sorry for my english I speak flemish ...
www.marc-systems.be


Top
 Profile  
Reply with quote  
 Post subject: Re: PB Editor is very, very slow, Why ??
PostPosted: Wed Nov 19, 2014 11:53 pm 
Offline
New User
New User

Joined: Tue Apr 29, 2014 4:01 pm
Posts: 2
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB Editor is very, very slow, Why ??
PostPosted: Fri Oct 09, 2015 1:13 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Oct 06, 2006 4:41 am
Posts: 655
Location: Canada
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.


Top
 Profile  
Reply with quote  
 Post subject: [SOLVED] PB Editor is very, very slow, Why ??
PostPosted: Tue Apr 09, 2019 9:32 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 06, 2010 10:16 am
Posts: 527
Location: Belgium
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

_________________
Greetings from Pajottenland - Belgium
PS: sorry for my english I speak flemish ...
www.marc-systems.be


Top
 Profile  
Reply with quote  
 Post subject: Re: [SOLVED] PB Editor is very, very slow, Why ??
PostPosted: Wed Apr 10, 2019 12:13 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5790
Location: Wales, UK
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: [SOLVED] PB Editor is very, very slow, Why ??
PostPosted: Wed Apr 10, 2019 5:08 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 06, 2010 10:16 am
Posts: 527
Location: Belgium
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

_________________
Greetings from Pajottenland - Belgium
PS: sorry for my english I speak flemish ...
www.marc-systems.be


Top
 Profile  
Reply with quote  
 Post subject: Re: [SOLVED] PB Editor is very, very slow, Why ??
PostPosted: Thu Apr 11, 2019 9:38 am 
Offline
Addict
Addict
User avatar

Joined: Thu Feb 09, 2006 11:27 pm
Posts: 2404
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).


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye