Page 2 of 2
Posted: Sun Mar 04, 2007 1:30 am
by akj
I've noticed this slowness problem on Windows Me and in my experience the more chunks of code that are folded, the slower the loading. So with my large programs, I always unfold everything before finally saving the source code to disc. This definitely seems to help.
Posted: Sun Mar 04, 2007 5:16 pm
by Rook Zimbabwe
Syntax coloring has been a bit of a pickle here too... I had to turn it off because it was acting weird when I used the bluepoint laser mouse... too titchy! Perhaps the user was just twitchy...

(that would be me if anyone wonders!)
Posted: Sun Mar 04, 2007 5:25 pm
by SkyManager
Back to the basic - the strategy is "Divide and conquer".
Break down the huge source file into logical units and separate each unit further into sub-units and so and so.
Posted: Sun Mar 04, 2007 5:31 pm
by Karbon
That's assuming that this 39,000 line source file isn't broken down. It is! It's just a project with a large code base. There are a number of other source code files as well.
While I *could* break this file down into a potentially infinite number of smaller files, doing so would only slow things down. Without any sort of "project" collection (Delphi or Visual Studio), using text editors and search features gets tedious when you're trying to locate a function or variable! That tedium is only increased if you have to not only search 39,000 lines of code, but 39,000 lines of code spread out over 10 different files.
Breaking up source into multiple files provides no inherent benefits except maybe to speed up the coloring stuff, but again, I've taken care of the problem by just using a different editor

Posted: Sun Mar 04, 2007 5:39 pm
by Trond
Luckily the PB editor has a fancy and fast search in files feature.
Posted: Sun Mar 04, 2007 5:43 pm
by Karbon
Yep, but it's still slower than having what you're looking for in front of you

Posted: Sun Mar 04, 2007 6:08 pm
by Kaeru Gaman
akj wrote:I've noticed this slowness problem on Windows Me and in my experience the more chunks of code that are folded, the slower the loading. So with my large programs, I always unfold everything before finally saving the source code to disc. This definitely seems to help.
interesting point.
I think it should be confirmed on other Win-versions, too,
and then perhaps the funktionallity of the IDE should be changed e.g. that way,
that when re-opening the IDE with files opened all of them are completely unfold by default,
or change the algorythm to speed folding up.
does jaPBe open up more performant even with all chunks folded?
btw: this topic is not a "coding question", but should be moved to "The PureBasic Editor"
Re: Looking for a better PB IDE
Posted: Mon Mar 05, 2007 10:32 am
by gnozal
Karbon wrote:So I just tried to open kBilling's source code files with the default PB editor that comes with the latest 4X version and it's *still* loading, 10 minutes later.. Apparently a 39,000 line file is just too much for it to handle.
I have jaPBE for 3.9X, but understand it's not in development anymore.. Or is it?
If it's not, can someone suggest something else to use? I might just go back to TextPad or Notepad++, but I'd rather have a "Real" PB editor designed specifically for PB..
Any pointers?
I still use the 'old' jaPBe (2.5.4.22) for my PureFORM project writen in PB3.94 (only 21000 lines though), and it only takes 18 s to load on an old PII-300 !
Posted: Mon Mar 05, 2007 11:02 am
by netmaestro
I have a 60k - line program that will load in about 3 seconds and move around smoothly in the PB IDE, but only if the options for Syntax highlighting, Keyword bolding and Case Correction are turned off. With all those options enabled, a file of that size is quite a bit slower.
Posted: Wed Mar 14, 2007 2:49 pm
by purebuilt
You might try Crimson Editor. It is free has some neat features like verticle copy and paste and you can set it up for PB syntax coloring. You can also set it to compile and run your program too.
Posted: Wed Mar 14, 2007 3:21 pm
by ts-soft
UEStudio6 has full PureBasic Support (Projectmanagement, Compile and so on)
but i have not tested with 40000 lines code.
Posted: Wed Mar 14, 2007 3:28 pm
by Derek
Is there anywhere that I can download the source for the PBeditor?
I'm sure I saw it once but can't remember where.
Posted: Wed Mar 14, 2007 3:41 pm
by ts-soft
Derek wrote:Is there anywhere that I can download the source for the PBeditor?
I'm sure I saw it once but can't remember where.
The last GPL Version of the PB-IDE was 3.93 (not scintilla based and slow

)
http://ts-soft.eu/dl/editorsource_3.93.zip
Posted: Wed Mar 14, 2007 4:06 pm
by Psychophanta
I found about 1 bug per each about 300 lines i coded.
How is possible that Karbon (and others) didn't find not even 1 per each about 3000 lines? What kind of code do you do? do you repeat 9.9 of each 10 lines you write? or maybe... why don't you posted in the forum the bugs you found?
2nd: however, I hope this thread is useful for Freak to take it as a request

Posted: Wed Mar 14, 2007 10:35 pm
by Derek
ts-soft wrote:Derek wrote:Is there anywhere that I can download the source for the PBeditor?
I'm sure I saw it once but can't remember where.
The last GPL Version of the PB-IDE was 3.93 (not scintilla based and slow

)
http://ts-soft.eu/dl/editorsource_3.93.zip
Ok. Thanks, will have a look at it anyway.