in reply to Re: Populating a hash
in thread Populating a hash

what i had in mind was lower code lineage - being hopefully reflected in cpu utilization

Replies are listed 'Best First'.
Re^3: Populating a hash
by ww (Archbishop) on Mar 11, 2012 at 16:19 UTC
    Anytime you have to preface a desired result with "hopefully," you have a wish, not a plan.

    Some suggestions for alternate coding are surely forthcoming ... but my suggestion is "benchmark;" don't just hope, know. Fewer lines does emphatically NOT  eq "faster" code or "lower cpu utilization." There's so much going on behind the green curtain (cf Wizard of Oz) that benchmarking or intimate familiarity with perlguts (which labels itself only as an "introduction" to the Perl API) and the deeper reaches of Perl wisdom and C will you be able to confidently predict any particular case.

    And not just BTW, it's my suspicion that Perl will usually do a better job of optomizing-away bits of my code than I will.