It is currently Thu Jun 20, 2013 9:52 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: How to speed up the IDE?
PostPosted: Thu Mar 31, 2011 8:19 am 
Offline
User
User

Joined: Mon Mar 19, 2007 8:30 am
Posts: 22
Location: Germany
Hi at all.

I have a big project. About over 32000 lines of code spread over 25 files (24 includes and 1 main file).
Since I hit the 30000 mark - inserting a new line becomes very slow. It takes nearly 1 seconds :(
That's horrible long if you are fast in typing :wink:
Everything else runs fine without problems (autocomplete, ...).

I think the IDE checks for procedures, macros, variables, ... after each new line (my thoughts) ... and that's it why it
becomes slow.

Is there a way to speed this up? A workaround?

If not, maybe it can become a feature request -> a checkbox in the settings, not to recheck all code files?!?

My system: Win 7 Prof (x86), Intel Core2 Duo @ 2,94 Ghz, 4 GB RAM, PB 4.51

Greats, Morty


Top
 Profile  
 
 Post subject: Re: How to speed up the IDE?
PostPosted: Thu Mar 31, 2011 9:38 am 
Offline
Addict
Addict

Joined: Thu Nov 01, 2007 5:37 pm
Posts: 1579
Location: Germany
Occasionally I have the same problem. Most times the IDE responds as fast as it should and other times it is really slow: Typed characters appear about a half second later and generally editing the code is a huge pain. I think it happens when the IDE is opened for a longer time but I'm not sure about it because it just happens every now and then.
However, I was always able to fix it by restarting the compiler or closing the IDE and opening it again.


Top
 Profile  
 
 Post subject: Re: How to speed up the IDE?
PostPosted: Thu Mar 31, 2011 10:14 am 
Offline
Always Here
Always Here
User avatar

Joined: Mon Sep 22, 2003 6:45 pm
Posts: 7304
Location: Norway
I have found a tremendous increase in the IDE speed after turning off cleartype and antialiased font rendering in the control panel. But this was on XP, maybe ClearType is faster on Windows 7. Also it seemed to be related to long comments.

_________________
Woa, I set up a web server.


Top
 Profile  
 
 Post subject: Re: How to speed up the IDE?
PostPosted: Fri Apr 01, 2011 10:32 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Dec 23, 2003 3:54 am
Posts: 937
Location: New York
Trond wrote:
I have found a tremendous increase in the IDE speed after turning off cleartype and antialiased font rendering in the control panel.


Turned them off in XP itself, or somewhere in the IDE??


Top
 Profile  
 
 Post subject: Re: How to speed up the IDE?
PostPosted: Sat Apr 02, 2011 12:14 pm 
Offline
Always Here
Always Here
User avatar

Joined: Mon Sep 22, 2003 6:45 pm
Posts: 7304
Location: Norway
kenmo wrote:
Trond wrote:
I have found a tremendous increase in the IDE speed after turning off cleartype and antialiased font rendering in the control panel.


Turned them off in XP itself, or somewhere in the IDE??

In XP itself.

_________________
Woa, I set up a web server.


Top
 Profile  
 
 Post subject: Re: How to speed up the IDE?
PostPosted: Sat Apr 02, 2011 2:09 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Sep 24, 2010 12:02 pm
Posts: 123
Location: world wide web
well the solution to your problem is http://editplus.com

you can edit how much you want,
don't forgot: you must download user files for purebasic syntax (color style) .

:mrgreen:


Top
 Profile  
 
 Post subject: Re: How to speed up the IDE?
PostPosted: Mon Sep 26, 2011 6:19 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Feb 16, 2009 10:42 am
Posts: 531
Location: sweden
Split it into one file per major function or system. This way you will have 30 files thats 1000 lines of code and a better structure in the end.
Let your main.pb only be

includebinary "networkfunctions.pb"
includebinary "graphicfunctions.pb"
includebinary "show_as_table.pb"
includebinary "export_to_excel.pb"
includebinary "mainloop.pb"
mainwindow_open() (which is a procedure somewhere to open the main window
repeat
mainloop()
forever

I like to expand this question a bit - how can we speed up the compiler.
Don't get me wrong. Its really fast as it is, compared to M$ where you can go get a cup of coffe before its done. I've noted its much faster on my MacBook Air than my more powerful Windows based machine. I don't think this is because Xcode is efficiant, I think it has to do with the disc.
Are there any files that can be temp:ed in a Ramdisc during compile? NASM? Output file to ramdisc?


Top
 Profile  
 
 Post subject: Re: How to speed up the IDE?
PostPosted: Mon Sep 26, 2011 8:01 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jan 21, 2011 8:25 am
Posts: 560
To speed up the compilation process you could split your projects into different libraries (DLLs).
That especially makes sense for tasks that are completely different, so if you're writing a game you
could split up the sound engine and the graphics engine into libraries. :)

_________________
Image
ImageImageImage
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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