teslamotors / fixed-containers

C++ Fixed Containers
MIT License
352 stars 31 forks source link

Implement efficient clearing of the Hashtable #106

Open Bobobalink opened 2 months ago

Bobobalink commented 2 months ago

Instead of iterating over the linked list (also requires hash lookups) and erasing one by one, just reset the backing linked list and value storage, then 0 out the bucket array.