Highlighter test
BlitzMax Forums/BlitzMax Programming/Highlighter test
| ||
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. |
| ||
tested using maxide.bmx sourcecode loading time: 22233 millisecs total keywords: 6601 filesize 121KB kev |
| ||
File size is 183kb. mod/pub.mod/glew.mod/glew.bmx |
| ||
thx. What do you think of the performance? PS: The bug with the delimiters in the strings is solved (no white letters within strings) |
| ||
File size is 183kb. mod/pub.mod/glew.mod/glew.bmx loading time: 9680 millisecs total keywords: 9220 |
| ||
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. |
| ||
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. |