in reply to system calls vs perl functions: Which should be faster in this example?
Try redefining lsof_perl like so:
You should get somewhat better results.'lsof_perl' => sub { print scalar(grep(/file_a/, `$lsofcmd +3`)); },
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: system calls vs perl functions: Which should be faster in this example?
by machinecraig (Monk) on Dec 05, 2005 at 20:18 UTC |