[PATCH] improve performance of std::allocator::deallocate

Jonathan Wakely jwakely@redhat.com
Mon May 20 17:57:00 GMT 2019


On 20/05/19 19:21 +0200, François Dumont wrote:
>On 5/20/19 1:14 PM, Jonathan Wakely wrote:
>>-  r1->deallocate(p, 2);
>>+  r1->deallocate(p, 2, alignof(char));
>>+  __builtin_printf("%d\n", (int)bytes_allocated);
>
>Was this last line really intended to be added ?

No, and I've already removed it locally. I'm going to make another
change to that test shortly, so was going to wait and remove the line
with the other change.




More information about the Libstdc++ mailing list