puzpuzpuz/xsync

Implement shrinking in Map resize

puzpuzpuz opened this issue ยท 4 comments

Closed with #11

The current code still mentions the "unshrinkability" of the map:

// Also note that, unlike in sync.Map, the underlying hash table used
// by MapOf never shrinks and only grows on demand. However, this
// should not be an issue in many cases since updates happen in-place
// leaving no tombstone entries.

AFAIU #11 removed this limitation, correct?

The current code still mentions the "unshrinkability" of the map

Yes, that's a left over. Will fix it in the evening.

Addressed in #37