Reduce memory footprint of complex.t
Over the weekend, I said:
>Passes all expected tests on MachTen 4.0.3, EXCEPT...
>
>lib/complex fails to run because it wants more virtual memory than my
>system can provide. My system can provide 22 megs, which is not vast, but
>should be adequate to run a test, so I think lib/complex is being greedy.
>I'm pretty sure that the cause is repeated use of .= or similar on a
>scalar: the system malloc() which perl has to use on MachTen does not
>appear to coalesce free()d chunks, so behaves very badly when a scalar
>grows repeatedly. Anyway, I'll delve deeper and probably post a patch.
Here's that patch. It saves 2,861 (give or take) of those realloc()s my
system's native malloc() package fields so badly. Beware long lines. Hope
they reach you unmangled. (If not, ask me to send it uuencoded, or as a
MIME attachment or something.) You'll also need to hand patch a
--ignore-whitespace option: tabs will have been munged into spaces.
p5p-msgid: v
03020902af5d8e03c5ab@[194.51.248.84]