teslamotors / fixed-containers

C++ Fixed Containers
MIT License
395 stars 38 forks source link

Implement efficient clearing of the Hashtable #106

Open Bobobalink opened 7 months ago

Bobobalink commented 7 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.