in reply to Re: Sort taking a long time to clean up
in thread Sort taking a long time to clean up

As you note there is/was a malloc bug that led to slow destruction of big data structures. A workaround is:

use POSIX; # code here POSIX::_exit(0);

This skips the normal perl clean up and leaves it to the OS.

cheers

tachyon

Replies are listed 'Best First'.
Re^3: Sort taking a long time to clean up
by itub (Priest) on Sep 15, 2004 at 21:52 UTC
    Thanks, that's good to know. I compiled a new perl with the option "use the malloc that comes with perl" and the problem goes away.