Hi,

I got a small question concerning a parser I'm working on.

While the parser goes through the text it hits different tokens, which are
the processed by functions.

There are global settings which set if a function should be called or not.
(For example one time I do not want to edit token A, the other time I only
want to edit token A).

I thought that it would be cool if the algorithm that sends the tokens to
the functions would be generated on the beginning of the script, only
putting in those functions which will be called on this specific run.

Now the main question is, is this really going to bring me a performance
tune up, or am I running for extra work that won't pay out?

Then I thought of how to implement this.
The only solution I know is creating a new script file which will be
included after it has been dynamically generated, but I guess that will be
to slow.
So is there a possibility of executing strings?
e.g. putting an if clause in a string and then executing it.

Thanks for any info...

D

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to