Re: [ACPI] ACPI mentioned on lwn.net/kernel

Jamie Lokier (lk@tantalophile.demon.co.uk)
Sat, 26 Jan 2002 04:59:34 +0000


Andrew Pimlott wrote:
> > Most likely it says very bad things about getcwd() implementation in Perl
> > compared to sys_getcwd() in the kernel.
>
> No no no--it says very bad things about 'use POSIX', and in general
> about overhead-creep in the perl library.

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/