Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: File::Temp painfully slow under Cygwin

by Laurent_R (Abbot)
on Jul 09, 2013 at 18:49 UTC ( #1043361=note: print w/replies, xml ) Need Help??


in reply to File::Temp painfully slow under Cygwin

It may not help very much, but I just tried your command under Cygwin, Win 7 and 8 cores (in other words, a configuration very similar to what you have). First call and second one:

Laurent@Laurent-HP ~ $ time /usr/bin/perl -e 'use File::Temp' real 0m0.763s user 0m0.108s sys 0m0.139s Laurent@Laurent-HP ~ $ time /usr/bin/perl -e 'use File::Temp' real 0m0.164s user 0m0.093s sys 0m0.062s

Replies are listed 'Best First'.
Re^2: File::Temp painfully slow under Cygwin
by dds (Novice) on Jul 09, 2013 at 20:32 UTC
    Thank you. The problem could then be an installation issue. What do you get by running the following?
    find /usr/lib/perl5/ -name Cwd.dll
    In my case the file does not exist, and this may explain the problem.
      My contribution from a Toshiba NB305 Netbook 1.66GHz with 2GB RAM, running WinXP:
      $ uname -a CYGWIN_NT-5.1 minime 1.7.20(0.266/5/3) 2013-06-07 11:11 i686 Cygwin $ perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for cygwin-th +read-multi-64int (with 7 registered patches, see perl -V for more detail) Copyright 1987-2011, Larry Wall <output truncated> $ time /usr/bin/perl -e 'use File::Temp' real 0m0.469s user 0m0.358s sys 0m0.125s $ time /usr/bin/perl -e 'use File::Temp' real 0m0.438s user 0m0.249s sys 0m0.202s
      ...and the search for Cwd.dll returned nothing.

      I initially ran this earlier and the "real" time was just over two seconds, but that was the slowest it recorded.

      Hope this helps!

      Does not seem to exist either.

      Laurent@Laurent-HP ~ $ find /usr/lib/perl5/ -name Cwd.dll Laurent@Laurent-HP ~

        Does not seem to exist either.

        Check this way

        $ perl -MCwd -le " print for grep /Cwd/, %:: " Cwd:: *main::Cwd:: _<C:/citrusperl/lib/auto/Cwd/Cwd.dll *main::_<C:/citrusperl/lib/auto/Cwd/Cwd.dll _<Cwd.c *main::_<Cwd.c

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043361]
help
Chatterbox?
[stevieb]: ahhh yes, it *is* a ref. I had forgotten that. I too have learned something. I quit too!!
[marioroy]: Is List::Util::XS a core Perl module?
[stevieb]: corelist List::Util::XS says "List::Util::XS was first released with perl v5.10.1"
[stevieb]: so yes, since v5.10.1 :)
[MidLifeXis]: According to [metaperl:// corelist], Perl 5.10.1
Lady_Aleena blurbles. One of her favorite modiles is now in "maintenance mode" in favor of a new fangled module.
[MidLifeXis]: D'oh. Slow out of the gate.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (13)
As of 2017-05-24 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?