in reply to IO::Uncompress::Gunzip to scalar takes hours (on windows)

If this is ActiveState Perl built with VC6, I remember some bad (re)allocation behaviour of the runtime memory allocator. Maybe the decompressor reallocates the buffer quite often and triggers the bad behaviour.

A potential workaround could be to presize the buffer:

$cleartxt= " " x 100_000; # or whatever you expect; $cleartxt= ''; gunzip ...

Super Search for a post by BrowserUk somewhere in such a thread could unearth more information.

Replies are listed 'Best First'.
Re^2: IO::Uncompress::Gunzip to scalar takes hours (on windows)
by cmv (Chaplain) on May 22, 2013 at 11:57 UTC
    I tried this quickly last night, but it didn't seem to make any difference. I'm hoping to profile it to see what is really going on. If I can get to that soon, I'll post the results.

    This still may be the issue, but maybe I just didn't preallocate enough.

    Thanks ++Corion