The stupid question is the question not asked | |
PerlMonks |
Re: What could cause excessive page faults? (A fix)by BrowserUk (Patriarch) |
on Mar 11, 2010 at 12:10 UTC ( [id://828028]=note: print w/replies, xml ) | Need Help?? |
To whom it may concern. Commenting out line 25 of win32\VMem.h fixes the problem of wildly excessive page faults, that are causing a quadratic slowdown on memory allocations under some circumstances.
With this fix, the OP snippet that takes 32+ seconds to run, now takes just 0.4 seconds: Update: Should'a mentioned 37,000 page faults instead of 5,7 million. Memory consumption the same in both cases.
I've tried to reason about the possible consequences of this change, but get lost in the layers upon layers of conditional redefinition, redirection and misdirection in the perl sources. It doesn't appear to cause any additional test suite failures, but then I seriously doubt if the appropriate circumstances are being tested anywhere. 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.
In Section
Seekers of Perl Wisdom
|
|