elliotchance / orderedmap

🔃 An ordered map in Go with amortized O(1) for Set, Get, Delete and Len.
MIT License
817 stars 62 forks source link

Is it necessary to save the key in the element? This can cause a multiple of the memory overhead. #7

Open xcshuan opened 4 years ago

xcshuan commented 4 years ago

I think Iteration may no need key. You can make that saving keys in elements or not as a option。