[phobos] Clear appending cache?
Steve Schveighoffer
schveiguy at yahoo.com
Thu Nov 18 13:36:19 PST 2010
Appender is currently much faster than array appending because it has a
dedicated place to store the array length/capacity. Simply wrapping arrays
makes it much slower (which has a necessarily very convoluted way to lookup the
block capacity). Or am I missing something?
-Steve
----- Original Message ----
> From: Andrei Alexandrescu <andrei at erdani.com>
> To: Discuss the phobos library for D <phobos at puremagic.com>
> Sent: Thu, November 18, 2010 4:28:43 PM
> Subject: Re: [phobos] Clear appending cache?
>
> Related question: can we make Appender a thin wrapper over arrays? It
> looks like improving "~=" caching is the right way to place effort.
>
> Andrei
>
> On 11/18/10 1:15 PM, David Simcha wrote:
> > Can someone who knows better than me how it works (probably Steve)
> > please put a function in druntime to clear the current thread's array
> > appending cache? I need this for two reasons:
> >
> > 1. To make sure arrays I'm done with get GC'd.
> >
> > 2. To make it safe(r) to free arrays manually.
> >
> >
> >
> > _______________________________________________
> > phobos mailing list
> > phobos at puremagic.com
> > http://lists.puremagic.com/mailman/listinfo/phobos
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
>
More information about the phobos
mailing list