Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^17: Thanks to Ikegami, Chromatic & Corion

by Logicus
on Nov 03, 2011 at 02:42 UTC ( #935561=note: print w/ replies, xml ) Need Help??


in reply to Re^16: Thanks to Ikegami, Chromatic & Corion
in thread Thanks to Ikegami, Chromatic & Corion

Whenever the document is modified the main loop restarts at the top. A future optimisation could possibly move a cursor pos along so that bits which have been scanned don't get scanned again, but I haven't got that far into optimising it yet and I probably wont for some time because it seems fast enough as it is.

Since the parser starts by looking for ( ) tags it makes sense to use them first, save scanning for them and finding nothing before scanning for < >

What bug btw?


Comment on Re^17: Thanks to Ikegami, Chromatic & Corion
Select or Download Code
Re^18: Thanks to Ikegami, Chromatic & Corion
by ikegami (Pope) on Nov 03, 2011 at 03:48 UTC

    What bug btw?

    Are you serious??? GOTO 934824 (or any number of others).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://935561]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2015-07-06 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls