develooper Front page | perl.perl5.porters | Postings from October 2005

IO::File performace issue

Thread Next
From:
Pratik
Date:
October 26, 2005 23:26
Subject:
IO::File performace issue
Message ID:
9212531d0510262326i4030c3a4g66b55fc7c4e2a37c@mail.gmail.com
Hi,

Recently IO::File module was changed with following :

$ diff /arudev/lib/perl5/5.8.2/i686-linux-thread-multi/IO/File.pm
/arudev/lib/perl5/5.8.6/i686-linux/IO/File.pm.org
172c172
<           $file = File::Spec->catfile(File::Spec->curdir(),$file);
---
>           $file = File::Spec->rel2abs($file);

File::Spec->rel2abs() uses Cwd and that in turn forks a new process
for every call to determine working directory. This caused us to have
major performance issues. What used to take 30 minutes, took almost 7
hours !

Could you please suggest solution to this ? It would be great if the
change mentioned above, can be reverted back. But I do understand that
the real issue lies within Cwd.pm.

Thanks,
Pratik

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About