From: Nicholas Clark Date: Sun, 27 Jul 2008 09:58:13 +0000 (+0000) Subject: Note the possibility of sharing arenas between types. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3880c8ecf10dc96c62bcbf2ffe75d782d2aed4a7;p=p5sagit%2Fp5-mst-13.2.git Note the possibility of sharing arenas between types. p4raw-id: //depot/perl@34160 --- diff --git a/pod/perltodo.pod b/pod/perltodo.pod index efe7fe2..9421260 100644 --- a/pod/perltodo.pod +++ b/pod/perltodo.pod @@ -538,6 +538,14 @@ probably aren't allocated/deallocated often enough for a speed saving. Whereas C 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