On 4/28/11 2:27 PM, Timon Gehr wrote:
Steven Schveighoffer wrote:
Yes, the allocation and free performance could be improved, but it doesn't
change the fact that delete manually is not a huge performance gain, if at
all.
My benchmark shows that in the current implementation manual deletion of GC
memory
is at least 15 times faster than leaving it up to the GC. (better cache behavior
of the data unmeasured)
Thanks for the data point. Another good one would be comparing
new/delete with malloc/free.
Andrei