Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^16: Thanks to Ikegami, Chromatic & Corion

by ikegami (Pope)
on Nov 03, 2011 at 02:31 UTC ( #935559=note: print w/ replies, xml ) Need Help??

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

Did your post get cut short? You were trying to prove to me that your plugin wasn't buggy.

Or are you saying that the result of (plugin)(/plugin) isn't searched for tags? I thought it was the same as <plugin></plugin> except for precedence.

Comment on Re^16: Thanks to Ikegami, Chromatic & Corion
Select or Download Code
Replies are listed 'Best First'.
Re^17: Thanks to Ikegami, Chromatic & Corion
by Logicus on Nov 03, 2011 at 02:42 UTC

    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?

      What bug btw?

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2015-11-25 22:40 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (692 votes), past polls