![]() | |||||||||||||
Messages in this thread |
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/ | ||||||||||||
| Last update: 2005-03-22 12:15 [W:0.214 / U:0.230 seconds] ©2003-2008 Jasper Spaans | |||||||||||||