develooper Front page | perl.perl5.porters | Postings from April 2000

Win32 IO::File::new_tmpfile very slow

Thread Next
Matt Sergeant
April 27, 2000 03:20
Win32 IO::File::new_tmpfile very slow
Message ID:
Try this on a Linux box and a Win32 box:

use IO::File;
while(1) {
print "$x\n" unless $x++ % 1000;
my $fh = IO::File::new_tmpfile || die $!;

On Linux it just zaps away, creating thousands of temp files instantly. On
Win32 it churns away like its giving out tickets at a meat counter. Is
this because of Win32 internals, or some other reason?

Incidentally, a custom "new_tmpfile" built on File::MkTemp proceeds at
similar speeds on both Win32 and Linux.


Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About