Re: [_Hashtable] Optimize destructor

2024-06-10 Thread Jonathan Wakely
On Mon, 10 Jun 2024 at 09:52, Jonathan Wakely wrote: > > On Mon, 10 Jun 2024 at 05:38, François Dumont wrote: > > > > Hi > > > > libstdc++: [_Hashtable] Optimize destructor > > > > Hashtable destructor do not need to call clear() method that in addition

Re: [_Hashtable] Optimize destructor

2024-06-10 Thread Jonathan Wakely
On Mon, 10 Jun 2024 at 05:38, François Dumont wrote: > > Hi > > libstdc++: [_Hashtable] Optimize destructor > > Hashtable destructor do not need to call clear() method that in addition to > destroying all nodes also reset all buckets to nullptr. > > libstdc++-v3/ChangeL

[_Hashtable] Optimize destructor

2024-06-09 Thread François Dumont
Hi libstdc++: [_Hashtable] Optimize destructor Hashtable destructor do not need to call clear() method that in addition to destroying all nodes also reset all buckets to nullptr. libstdc++-v3/ChangeLog:     * include/bits/hashtable.h (~_Hashtable()): Replace clear call with     a