Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: Speed up hash initialization loop

by austinj (Acolyte)
on Jan 30, 2013 at 15:13 UTC ( #1016080=note: print w/replies, xml ) Need Help??

in reply to Re: Speed up hash initialization loop
in thread Speed up hash initialization loop

I just ran one more test, I ran 100 profiles, average approx 1 second per profile. I then ran 3 profiles (that were in the 100 set) and specifically those 3 had taken 2+ seconds to run. Now with only 3 they each ran in 0.07 seconds or less. I'm not sure why it seems to already know it has a lot of profiles ... unless, I'm passing the profiles in on the command line example /home/profile_* , maybe it has to run this "ls" type command every time? it seems it should only run it once, but I'm not sure I set it up that way. I'm pulling them in like this:

my $arg_profs  =   \@ARGV; # set the remaining arguments AFTER you have read the template

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2016-10-23 13:06 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (301 votes). Check out past polls.