in reply to DBI and Eval
In any event, the response from those who even benchmarked it is a clear and resounding "BS" call on the "eval slows things down".
Perhaps it's a bad bit of cargo-cult programming. eval-string certainly slows things down. Using $& (not $@) once in a program slows the whole thing down, and once you pay the price once, you don't have to pay it again. Maybe this is a mutated gene from some weird mutant merge of those two statements.
In any event, eval-block subtracts nothing from the execution speed over the price of a normal block (now don't freak out about that either!).
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: DBI and Eval
by chromatic (Archbishop) on Dec 20, 2000 at 21:26 UTC | |
|
Re: Re: DBI and Eval
by Sifmole (Chaplain) on Dec 20, 2000 at 20:37 UTC |