Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Nested evals - are they evil?

by ysth (Canon)
on Jul 31, 2007 at 00:55 UTC ( #629717=note: print w/ replies, xml ) Need Help??


in reply to Nested evals - are they evil?

Leave well enough alone?

If you really want to fix things, investigate the all possible causes of exceptions and decide ahead of time how you want to handle them. Then stop and consider if that really provides any benefit over how things are now.


Comment on Re: Nested evals - are they evil?
Re^2: Nested evals - are they evil?
by cLive ;-) (Parson) on Jul 31, 2007 at 01:36 UTC

    I'm leaving them for now, but since this is a daemon, I think (though have yet to benchmark) that removing the evals will speed things up a little. Or a lot. If a lot, removing them suddenly becomes essential.

    I was just wondering right now if philosophically it was better to work towards removing them.

    Hmmmm.

      You think that block evals are a performance penalty? I've never heard that. Have you tested that theory at all?

        No, hence the words, "I think" and "have yet to benchmark" ;-)

        I guess my hunch was wrong on that count. I think it's just that I'm not 100% sure exactly how eval is dealt with that is troubling my psyche. Time for more background reading...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-08-30 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls