in reply to Reading from file in threaded code is slow

Further to this I have had a bit of a play on a few more perls and OSes.

The code runs quickly on

On all of these the code runs with about 1sec/file total 4seconds (although 5.8.8 spat out some warnings "Scalars leaked: 1" ).

The code runs slowly on

The 5.10.x taking 7 to 17 s/file, while the shiny new 5.14.1 took 4 to 8s/file. So it looks like this is a problem with cygwin only. :-(

It would be nice if somone else could confirm my observations. The next stop on Monday will be ActivePerl 5.14.1 but I would rather like to keep the code in cygwin if I could.

Suggestions?

  • Comment on Re: Reading from file in threaded code is slow

Replies are listed 'Best First'.
Re^2: Reading from file in threaded code is slow
by BrowserUk (Patriarch) on Jul 09, 2011 at 01:27 UTC
    So it looks like this is a problem with cygwin only.

    That makes some sense. When I briefly played with cygwin close to a decade ago I noted that it was very sluggish for many things. It wouldn't surprise me to hear that it has never been tailored for a multi-core, multi-threaded environment.

    You might get better responses by reporting your findings on the cygwin lists as this doesn't seem to be a "perl problem" per se.