Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: The Cost of Nested Referencing

by shotgunefx (Parson)
on Nov 15, 2002 at 13:22 UTC ( #213142=note: print w/replies, xml ) Need Help??


in reply to Re: The Cost of Nested Referencing
in thread The Cost of Nested Referencing

I agree for the most part, but sometimes you have to go for speed and sometimes, it's because it's not worth all the extra coding overhead. Most of these $self->{key}{subkey} items (in my code anyway) are because they satisfy my requirements, they are not sufficiently clustered to be considered their own object (I don't write OO for OO sake), or the number of times it will be accessed would make the extra level of indirection unacceptable performance-wise.

-Lee

"To be civilized is to deny one's nature."
update: fixed typo.

Replies are listed 'Best First'.
Re: Re: Re: The Cost of Nested Referencing
by gjb (Vicar) on Nov 15, 2002 at 14:00 UTC

    Using Class::MethodMaker minimizes this effort of course.

    Of course, you're perfectly right that not everything maps to clases/objects.

    Regards, -gjb-

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2020-04-07 18:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (43 votes). Check out past polls.

    Notices?