Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2018-03-18 17:54 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (230 votes). Check out past polls.