in reply to handler performance question
a) testing if the directory exists before attempting to create it
b) using the perl built-in mkdir command
c) cache this info. IOW, don't try to recreate a directory you've already created before. The difference between system and mkdir and stat is quite vast, but in this situation it completely dwarfed by the sheer amount of unnecessary calls you'd make. update: this is the important suggestion. you can ignore the rest for this particular problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: handler performance question
by ikegami (Patriarch) on Feb 04, 2009 at 03:02 UTC |