GoScintilla - 2.7 (Purebasic 4.5 onwards)

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Tenaja
Addict
Addict
Posts: 1948
Joined: Tue Nov 09, 2010 10:15 pm

Re: GoScintilla - 2.7 (Purebasic 4.5 onwards)

Post by Tenaja »

Use the debugging tools to see where your bottleneck is; you may be duplicating commands.

I have opened a benchmark file with 100,000's of lines of code and lexed it in about 10-30 seconds (been too long to remember exactly) using a slow laptop and a lexing similar to the PB IDE. It did turn out slower than the PB IDE, but only a small amount. It was about 1/2 or maybe 2/3 the speed of Notepad++. Anybody using a file large enough to see the difference is kind of crazy.
User avatar
StarBootics
Addict
Addict
Posts: 984
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: GoScintilla - 2.7 (Purebasic 4.5 onwards)

Post by StarBootics »

Hello everyone,

I have converted the srod's original code into a module. The source code can be downloaded from this link :
https://www.dropbox.com/s/7sp972ifdc34q ... e.zip?dl=0

Edit #1 : InitScintilla() for Windows Added
Edit #2 : Bug correction

Best regards
StarBootics
Last edited by StarBootics on Mon Mar 11, 2019 12:01 am, edited 3 times in total.
The Stone Age did not end due to a shortage of stones !
User avatar
Zebuddi123
Enthusiast
Enthusiast
Posts: 794
Joined: Wed Feb 01, 2012 3:30 pm
Location: Nottinghamshire UK
Contact:

Re: GoScintilla - 2.7 (Purebasic 4.5 onwards)

Post by Zebuddi123 »

Hi Starbootics InitScintilla() missing from example code
Thanks Zebuddi. :)
malleo, caput, bang. Ego, comprehendunt in tempore
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: GoScintilla - 2.7 (Purebasic 4.5 onwards)

Post by IdeasVacuum »

Hi Starbotics

Your GoScintilla Module - which version of GoScintilla is it based on? This forum post is about v2.7 but the most recent version, a bug fixer, is v3.1.

Edit: Only ASCII for Syntax Keywords? That sounds strange.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
StarBootics
Addict
Addict
Posts: 984
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: GoScintilla - 2.7 (Purebasic 4.5 onwards)

Post by StarBootics »

IdeasVacuum wrote:Hi Starbotics

Your GoScintilla Module - which version of GoScintilla is it based on? This forum post is about v2.7 but the most recent version, a bug fixer, is v3.1.

Edit: Only ASCII for Syntax Keywords? That sounds strange.
I think it's based on the 2.7 version but I'm not sure about that. Where is the download link for the version 3.1 ?

Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
Post Reply