[go-nuts] Re: Performance of byte-arrays as map keys

2023-03-29 Thread Amit Lavon
Thank you! Now it makes sense to me. On Monday, March 27, 2023 at 5:50:02 PM UTC+3 Keith Randall wrote: > Key sizes 4 and 8 have special case hashing code. > They are intended for int32, int64, and pointers, but your [4]byte and > [8]byte take advantage of it as well. > > On Sunday, March 26, 20

[go-nuts] Re: Non-method funcs

2023-03-29 Thread nc
Just adding a quick note: It turns out this topic has been discussed before. I thought I tried to search but perhaps I had been using the wrong keyword. If you search for "pure" or "purity" you will see a lot of stuff. I am hoping to review it all soon and see if I can come to any conclusions b