Re: [fpc-devel] RFC: Improvements for TDictionary and other hash containers

2025-04-05 Thread Martin Frb via fpc-devel
On 03/04/2025 13:52, Martin Frb via fpc-devel wrote: On 27/03/2025 12:28, Martin Frb wrote: There are 2 features, I am missing. I did a couple of experiments... Those are not finished code. They only showcase the ideas, and only for the one OpenAddressingLp case https://gitlab.com/martin_fr

Re: [fpc-devel] RFC: Improvements for TDictionary and other hash containers

2025-04-04 Thread Martin Frb via fpc-devel
On 03/04/2025 13:52, Martin Frb via fpc-devel wrote: On 27/03/2025 12:28, Martin Frb wrote: There are 2 features, I am missing. 4)  GetOrAddMutable Just an extension, like AddOrSetValue. Having it as one call, avoids recalculating the hash/index. Actually needs bool result, to indicate if it