Highlighter test

BlitzMax Forums/BlitzMax Programming/Highlighter test

klepto2(Posted 2006) [#1]
Hi, I need some performance tests about my highlightning engine.

The sample is a Bmax highlighter which highlights types,functions methods and constants. It also supports Singleline comments.

todo:
Add support for multiline comments
Add support for alphanumeric terms
eliminate some bugs (1 I have found is when I comment in and comment out a line, then some chars stay commented)

What I need:
the kb of the file you are loading
the millisecs and the highlighted keywords, both shown in the status bar.
and maybe your opinion about it

here the link: http://www.eastwestgames.de/file.php?id=184

thx

PS: the keywords in the statusbar are related to the complete available keywords in BMax.


Kev(Posted 2006) [#2]
tested using maxide.bmx sourcecode

loading time: 22233 millisecs
total keywords: 6601
filesize 121KB

kev


N(Posted 2006) [#3]


File size is 183kb. mod/pub.mod/glew.mod/glew.bmx


klepto2(Posted 2006) [#4]
thx.
What do you think of the performance?

PS:
The bug with the delimiters in the strings is solved (no white
letters within strings)


dmaz(Posted 2006) [#5]
File size is 183kb. mod/pub.mod/glew.mod/glew.bmx

loading time: 9680 millisecs
total keywords: 9220


Tachyon(Posted 2006) [#6]
File size: 329kb
Parse time: 34723ms Keywords: 7685
Computer: AMD64 3800 / 2GB RAM

Seems slow to me. I wish BRL (or someone else) could improve the time it takes the IDE to parse large source code files.


Dreamora(Posted 2006) [#7]
Thats not possible until the highlight is completely rewritten. The use a very slow approach using RichText styles intead of simple render all text and over-render the "to highlight" ones afterwards with the specific color.