Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

RE: Re (tilly) 1: Speeding-up OO accessor methods

by mirod (Canon)
on Sep 19, 2000 at 01:20 UTC ( #33032=note: print w/replies, xml ) Need Help??


in reply to Re (tilly) 1: Speeding-up OO accessor methods
in thread Speeding-up OO accessor methods

I admit I haven'd done any benchmarking here, but aren't tie-ed variables slower than a simple hash access? The whole point of this hack is to get some speed.</pp>

  • Comment on RE: Re (tilly) 1: Speeding-up OO accessor methods

Replies are listed 'Best First'.
RE (tilly) 3: Speeding-up OO accessor methods
by tilly (Archbishop) on Sep 19, 2000 at 01:34 UTC
    The whole point of this hack as I see it is to write a ton of code so in the long run you could switch the implementation from hash access (fast) to something slower but more flexible.

    Being prepared to move to a tied interface later gives you that flexibility without any loss in speed or extra coding and development effort up front. Downstream that extra time will likely matter more anyways.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://33032]
help
Chatterbox?
LanX is on a protloose
[shmem]: protloose? can't parse that
[choroba]: neither can I
[choroba]: and the first Google hit is tagged "human feces" :-o
[choroba]: oh, missed the double o
[shmem]: "brotlos"?
[shmem]: heavy protein discharge?

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2017-08-17 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (286 votes). Check out past polls.

    Notices?