Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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.

Replies are listed 'Best First'.
Re^2: Nested evals - are they evil?
by cLive ;-) (Prior) 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.


      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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://629717]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2017-12-18 05:45 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (467 votes). Check out past polls.