http://www.perlmonks.org?node_id=861309


in reply to Re: What could cause excessive page faults? (A fix)
in thread What could cause excessive page faults?

Somewhat related (or not) to using a different memory allocator than MSVCRT, Patch to make string-append on Win32 100 times faster. This change makes Perl grow/realloc strings exponentially geometrically instead of by a fixed amount and hence showed a speedup at least for Windows, by avoiding calls to realloc(). On Linux, at least with certain allocators, a slowdown was found. For BSD, Perl already uses its own allocator.

Replies are listed 'Best First'.
Re^3: What could cause excessive page faults? (A fix)
by BrowserUk (Patriarch) on Sep 22, 2010 at 16:41 UTC

    Many thanks for that. It looks like I'll be upgrading from 5.10 to 5.14 when it comes, in the hope that this patch addresses the OP problem.

    Though I do wonder if my one-line patch wouldn't have fixed that too?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.