I ended up calling sys_getcwd from Perl as it's extremely fast. Even
faster if you hard code the syscall number instead of reading the header
file in Perl :-)
However, I was still impressed by the 0.0075s for a pipe/fork/exec.
'use POSIX' is very slow, but Perl's getcwd() is pretty slow too -- it
does the old fashioned directory walk. We cannot blame it for being
portable.
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/