On Thu, Oct 16, 2008 at 12:38:54PM +0100, Deviloper wrote:
> The last time I considered using eval is years ago.  I remember that I
> had read an article somewhere that doing eval could lead to dramatic
> performance issues. 
> 
> I want to use eval{} to check my db-transactions. I looking for
> informations at perldoc eval, but there is nothing mentioned about
> performance influences.

Really?  Although the word "performance" is not mentioned, it does talk
about efficiency and penalties in the context of performance.  Take
another look.

Also note the two type of eval - string and block.  If you are using
block evals you probably don't even need to think about performance.
Certainly not until you have proven that that is your bottleneck.

And if you are using string eval you should probably be looking for some
other way to do it anyway.  This, though, is probably the type of eval
you have remembered as being a potential performance problem.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to