Recent

Author Topic: Checking Speed of SynEdit Highlighters  (Read 105088 times)

BBaz

  • Newbie
  • Posts: 4
Re: Checking Speed of SynEdit Highlighters
« Reply #165 on: November 12, 2013, 07:25:54 pm »
>:( ...
No of course... only the screen range will be rescanned and maybe a bit of code before...
 ::)

Usually only a single line will be scanned,
but some chars will cause a scan from the modified line to the end of the whole code.

The thread was started by one who felt urged to show how smart he is.

It's not right for example if I type {*, the whole doc doesn't need  to be analyzed, if the text displayed on my screen doesn't include the *}...
Because idealy the highlighter will have set the flags for: "scanStringEnd, scanComment End etc...)...

BBaz

  • Newbie
  • Posts: 4
Re: Checking Speed of SynEdit Highlighters
« Reply #166 on: November 12, 2013, 08:08:04 pm »
Ok...I've read this:

"The thread was started by one who felt urged to show how smart he is.".

It's ok ok.what I mean is that he makes some obstruse tests on a whole document
while the methods used are only designed to work on 20, 40 or 80 lines let's say.
A syn HL is not designed to scan the whole doc...each time yout type... 8)

Morton

  • Full Member
  • ***
  • Posts: 111
Re: Checking Speed of SynEdit Highlighters
« Reply #167 on: November 12, 2013, 08:10:03 pm »
>:( ...
No of course... only the screen range will be rescanned and maybe a bit of code before...
 ::)

Usually only a single line will be scanned,
but some chars will cause a scan from the modified line to the end of the whole code.

The thread was started by one who felt urged to show how smart he is.

It's not right for example if I type {*, the whole doc doesn't need  to be analyzed, if the text displayed on my screen doesn't include the *}...
Because idealy the highlighter will have set the flags for: "scanStringEnd, scanComment End etc...)...

Could be done, but the scan does not take nearly as much CPU resources
as just querying for mouse and keyboard events, while processing eg. selections.
Most code can be scanned thousand times per second.
Even 1 MB code can be scanned 30 - 70 times per second,
depending on the average token length.

Morton

  • Full Member
  • ***
  • Posts: 111
Re: Checking Speed of SynEdit Highlighters
« Reply #168 on: November 13, 2013, 07:03:13 pm »
Regardless how many times I have been told to be a moron
from people who have rendered themself as clueless and usually
completely incompetent too: The code just works.
I gave you something that allows to write much cleaner
and easier to maintain code for highlighters.

Take it or let it, I do not care.
It was allways my stance people could do with my code everything they are capable of,
which wasn't usually that much with few exceptions

JanRoza

  • Hero Member
  • *****
  • Posts: 672
    • http://www.silentwings.nl
Re: Checking Speed of SynEdit Highlighters
« Reply #169 on: November 14, 2013, 12:34:12 am »
Quote
It was allways my stance people could do with my code everything they are capable of,
which wasn't usually that much with few exceptions

I think your tone is very arrogant.
I do not wish to be called incompetent by someone who does not know anything about my capabilities.
This kind of remarks tells more about your manners than it does about other forum members.
You'll probably disagree as you seem to think your the smartest person in the world but just forget about programming for a while and work on your manners.
Maybe then you'll get more positive response from other forum members.

These will be the last words I spend on you, there is more pleasant reading elsewhere on this forum.
« Last Edit: November 14, 2013, 12:42:13 am by JanRoza »
OS: Windows 10 (64 bit) / Linux Mint (64 bit)
       Lazarus 3.2 FPC 3.2.2
       CodeTyphon 8.40 FPC 3.3.1

Morton

  • Full Member
  • ***
  • Posts: 111
Re: Checking Speed of SynEdit Highlighters
« Reply #170 on: November 14, 2013, 04:14:48 pm »
[I think your tone is very arrogant.

ROFLMAO.

You do not even know the meaning of "arrogant".
I have just expressed confidence.
I do not adorn myself with borrowed plumes.
« Last Edit: November 14, 2013, 04:36:28 pm by Morton »

 

TinyPortal © 2005-2018