Do you know where your variables are? | |
PerlMonks |
Re: The joys of bad codeby Random_Walk (Prior) |
on Nov 16, 2004 at 15:33 UTC ( [id://408136]=note: print w/replies, xml ) | Need Help?? |
I worked with a perl coder once who wrote something like this
I asked him why he did not just write a shell script, his answer with no note of irony was that he did not know shell ! The following was causing serious memmory hogage in a production environment, multiple instances (30+) were running at any time, each took about 4 seconds to complete and eat a big chunck of RAM.
after the obvious changes it reduced to running in around 0.3 seconds, with a tweak to sort the hosts_file file when it was generated (once per day) and binary search it it was down to <0.04 secs per run Cheers,
In Section
Meditations
|
|