Impl hashCodeExternalValue without auxiliary arraybuffer
Bnaya opened this issue · 0 comments
Bnaya commented
Important note: need to be system endienss aware
As part of the hashmap impl, we have flow (lookup) that we need to hash value that is yet saved inside our main ArrayBuffer.
But out current hash function is working only on arraybuffer, so we have to first save the key in an intermediate arraybuffer so we can hash it.
That's very wasteful, and better be avoided.
objectbuffer/src/internal/hashmap/hashmapUtils.ts
Lines 24 to 39 in 4a8438f