develooper Front page | perl.perl5.porters | Postings from July 2010

Re: MG slabs?

Thread Previous | Thread Next
Yuval Kogman
July 18, 2010 15:06
Re: MG slabs?
Message ID:
This might break code that uses sv_magicext with multiple MGs of the
same mg_type (mg_find is meaningless for these anyway).

If the linked list pointers are preserved but the memory layout is
improved in sv_magic without breaking sv_magicext, I think that should
be fine though.

If sv_magic special cases a few commonly used mg_types to allocate a
table of MG entries and just makes sure they point at each other
sensibly, locality of reference can be achieved without changing the
linked list structure.

An mg_type based table could also be added, but not as the actual
storage mechanism, instead it would just be an index pointing at
linked list entries.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About