[DGD] Mappings

Shentino shentino at gmail.com
Sat Aug 13 19:40:41 CEST 2011


On Sat, Aug 13, 2011 at 10:27 AM, Felix A. Croes <felix at dworkin.nl> wrote:

> Shentino <shentino at gmail.com> wrote:
>
> >[...]
> > I later found that destructing an object seems to induce more overhead by
> > triggering an extra sweep in the mapping for destructed objects during
> > compaction.
> >
> > Questions
> >
> > 1.  How much overhead, if any, is this to be concerned about?
> > 2.  Besides array creation/merging/splitting/slicing, are there any
> sources
> > of overhead that I should be concerned about?
>
> The real source of overhead with mappings is mapping compaction.  Avoid
> that if possible.
>

What triggers compaction besides the obvious?

So far I've found set operations (+, -, &, ^), size checks, slicing, and
adding stuff to a mapping that is potentially full.

Have I missed anything?




> Regards,
> Felix Croes
> ___________________________________________
> https://mail.dworkin.nl/mailman/listinfo/dgd
>



More information about the DGD mailing list