- - Code, Content, and Presentation
- -- Perl Server Side CGI Scripting
- ---- Is Tight Code Best?
lexipixel - 9:50 pm on Sep 11, 2006 (gmt 0)
I read a little about tokenizing perl. One thing I read suggests the parser may optimize multiple statements that share the same token+data format into more compact tokenized code;
"So the job of yylex each time it's called
is to figure out what the next token is, set
yylval with any additional data
appropriate for the token, and return the token".
This is the kind of stuff I would like to hear from somebody who has benchmarked and optimized Perl and can give a ballpark on efficieny gains (if any) for writing leaner code.
Thread source: http://www.webmasterworld.com/perl/3079222.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com