Change 34160 by [EMAIL PROTECTED] on 2008/07/27 09:58:13
Note the possibility of sharing arenas between types.
Affected files ...
... //depot/perl/pod/perltodo.pod#233 edit
Differences ...
==== //depot/perl/pod/perltodo.pod#233 (text) ====
Index: perl/pod/perltodo.pod
--- perl/pod/perltodo.pod#232~34091~ 2008-06-28 13:37:32.000000000 -0700
+++ perl/pod/perltodo.pod 2008-07-27 02:58:13.000000000 -0700
@@ -538,6 +538,14 @@
C<MAGIC> is allocated/deallocated more often, but in turn, is also something
more externally visible, so changing the rules here may bite external code.
+=head2 Shared arenas
+
+Several SV body structs are now the same size, notably PVMG and PVGV, PVAV and
+PVHV, and PVCV and PVFM. It should be possible to allocate and return same
+sized bodies from the same actual arena, rather than maintaining one arena for
+each. This could save 4-6K per thread, of memory no longer tied up in the
+not-yet-allocated part of an arena.
+
=head1 Tasks that need a knowledge of XS
End of Patch.