Front page | perl.perl5.porters |
Postings from July 2010
Re: MG slabs?
Thread Previous
|
Thread Next
From:
Yuval Kogman
Date:
July 18, 2010 15:06
Subject:
Re: MG slabs?
Message ID:
AANLkTimMGbTpzxySzZ1huLlZQwu_X8PHZ72XmVyyEk56@mail.gmail.com
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