On Mon, Jul 20, 2026 at 01:00:36PM +0800, Kevin J. McCarthy wrote:
The first patch is just a couple formatting fixes.

The second patch renames "nelem" to "bucket_count" to hopefully reduce
ambiguity.

The third patch adds a "elem_count" and increments/decrements it on
hash insert/remove.

The last patch is the main one, adding resize_hash().  I am not a hash
expert.  If you have suggestions on the resizing limit, currently:
   if (table->elem_count > table->bucket_count * 1.2)
     resize_hash(table);
or other issues, please don't hesitate to mention them.

I've pushed this up to master.

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to