2 ms·
I don't want to argue specifically that Rust is the solution here, because I think using Go with offheap is a perfectly fine solution. But I do think that the
by pcwalton 11y ago
I don't want to argue specifically that Rust is the solution here, because I think using Go with offheap is a perfectly fine solution.
But I do think that the code complexity for a trivial hash table with striped locking can't possibly be higher than the complexity of serializing everything into a giant byte array and maintaining offsets into that array into a map which you make sure doesn't have any pointers in it.