in reply to Re^2: Efficiency Question
in thread Efficiency Question

OTOH, in addition to the insignificant performance hit, there may be a very significant maintenance hit. A future maintainer (maybe even the original author of the code!) may take a look at the superfluous ref/deref process, think "What the...?!?", and start looking through a ton of code for some clue as to why such a non-standard and round-about approach was used.

The considerate thing to do is to avoid setting someone else (or, again, maybe even yourself) up for such a wild-goose chase.

Replies are listed 'Best First'.
Re^4: Efficiency Question
by andreas1234567 (Vicar) on Mar 25, 2009 at 21:28 UTC
    1. Write wildly confusing code.
    2. Get listed on DWTF
    3. Profit!
    --
    No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]