Looking for a better PB IDE

Working on new editor enhancements?
akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

Post 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.
Anthony Jordan
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post 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!)
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
SkyManager
Enthusiast
Enthusiast
Posts: 339
Joined: Tue Jan 30, 2007 5:47 am
Location: Hong Kong

Post 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.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post 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 :-)
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Luckily the PB editor has a fancy and fast search in files feature.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Yep, but it's still slower than having what you're looking for in front of you :-)
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post 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"
oh... and have a nice day.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: Looking for a better PB IDE

Post 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 !
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post 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.
BERESHEIT
User avatar
purebuilt
User
User
Posts: 46
Joined: Sun Dec 17, 2006 5:30 pm
Location: Milwaukee, WI, USA

Post 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.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

UEStudio6 has full PureBasic Support (Projectmanagement, Compile and so on)
but i have not tested with 40000 lines code.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post 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.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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 :wink: )
http://ts-soft.eu/dl/editorsource_3.93.zip
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post 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 :wink:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post 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 :wink: )
http://ts-soft.eu/dl/editorsource_3.93.zip
Ok. Thanks, will have a look at it anyway.
Post Reply