Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

(ichimunki) Basic design seems inefficient

by ichimunki (Priest)
on Feb 15, 2001 at 04:16 UTC ( #58516=note: print w/ replies, xml ) Need Help??


in reply to Perl Source Stats

Can you explain your decision to not only loop over the same data set several times, but to actually read it in from the file separately for each pass?


Comment on (ichimunki) Basic design seems inefficient
Re: Re: Perl Source Stats
by dws (Chancellor) on Feb 15, 2001 at 04:29 UTC
    Rare is the Perl source that can't fit in memory.    my @source = <IN>;
    will do the trick, and give you something to iterate over in your subroutines.
Re: (ichimunki) Basic design seems inefficient
by spaz (Pilgrim) on Feb 15, 2001 at 05:23 UTC
    Simple!
    I'm a rank amature!

    Actually, I was thinking that at some point I might try to make this a little more robust, so that it could rewind and fast-forward. The purpose being to tell you how long each sub routine is, for example.

    -- Dave

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2014-12-22 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (117 votes), past polls