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

Re: Re: Streaming to Handles (iterator)

by crabbdean (Pilgrim)
on May 07, 2004 at 08:04 UTC ( #351387=note: print w/ replies, xml ) Need Help??


in reply to Re: Streaming to Handles (iterator)
in thread Streaming to Handles

I've written this into my code and it works perfectly! :-) I'll tweak it a bit and get it working with the other features in my module. But that's exactly what I was after. Big ++ !!!

I'm just running a benchmark now to see a comparasion against the alternative solution of returning files as arrays.

I intend to leave both methods in the module so it gives the user the choice of streaming or returning via arrays.

Here are the benchmark results:

Rate stream array stream 76.1/s -- -14% array 88.7/s 17% -- Rate stream array stream 79.8/s -- -5% array 83.9/s 5% -- Rate stream array stream 72.2/s -- -10% array 80.2/s 11% --
As you can see returning via array's is faster.

Once again a big thank you!

Dean
The Funkster of Mirth
Programming these days takes more than a lone avenger with a compiler. - sam
RFC1149: A Standard for the Transmission of IP Datagrams on Avian Carriers


Comment on Re: Re: Streaming to Handles (iterator)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2014-12-20 17:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (97 votes), past polls