Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

(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

Replies are listed 'Best First'.
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
    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?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2020-07-07 00:34 GMT
Find Nodes?
    Voting Booth?

    No recent polls found