GC allocation issue
Etienne
etcimon at gmail.com
Thu Mar 20 17:56:22 PDT 2014
On 2014-03-20 8:39 PM, bearophile wrote:
> Etienne:
>
>> I'm running some tests on a cache store where I planned to use only
>> Malloc for the values being stored, I'm hoping to eliminate the GC in
>> 95% of the program, but to keep it only for actively used items..
>
> Usually 95%-100% of a D program uses the GC and the 0%-5% uses malloc :-)
>
> Bye,
> bearophile
I'm trying to store a copy of strings for long-running processes with
malloc. I tried using emplace but the copy gets deleted by the GC. Any
idea why?
More information about the Digitalmars-d-learn
mailing list