If we have malloced_size() available, then avoid rounding up the string
authorNicholas Clark <nick@ccl4.org>
Tue, 26 Feb 2008 19:17:38 +0000 (19:17 +0000)
committerNicholas Clark <nick@ccl4.org>
Tue, 26 Feb 2008 19:17:38 +0000 (19:17 +0000)
commit98653f182f8d34d630c65229237c0d55f664e886
tree076e681e45ffaf884929bad1a7240fdecd217745
parentd2c25739add64fa456c06f60e5029d44b4a14912
If we have malloced_size() available, then avoid rounding up the string
to the next (guessed) plausible alignment size, and instead find out
how much memory was actually allocated, so that we can set this in the
scalar's SvLEN(). This way, sv_grow() will be called far less often.

p4raw-id: //depot/perl@33377
sv.c