Re: [PATCH] libstdc++: Limit allocations in _Rb_tree 1/2

2023-03-06 Thread Jonathan Wakely via Gcc-patches
On Wed, 22 Feb 2023 at 06:06, François Dumont via Libstdc++ wrote: > > Here is eventually a working proposal. > > Compared to the unordered container approach we need to find out what > type is going to be used to call the comparer. Otherwise we might > reinstantiate a temporary each time we call

[PATCH] libstdc++: Limit allocations in _Rb_tree 1/2

2023-02-21 Thread François Dumont via Gcc-patches
Here is eventually a working proposal. Compared to the unordered container approach we need to find out what type is going to be used to call the comparer. Otherwise we might reinstantiate a temporary each time we call the comparer. For example in case of const char* insertion with a less