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

Win32 IO::File::new_tmpfile very slow

Thread Next
From:
Matt Sergeant
Date:
April 27, 2000 03:20
Subject:
Win32 IO::File::new_tmpfile very slow
Message ID:
Pine.LNX.4.21.0004271113190.1054-100000@ted.sergeant.org
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.

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org



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