gosortmap
gosortmap copied to clipboard
Reflections overhead
Hello 😁
I think your reflection-based implementation is too overloaded with logic, you could make it even faster, but your example is more, hmm, more object-oriented, which is also quite nice
My implementation: https://github.com/KoNekoD/KSortMap-go
I, in turn, went the other way and simply defined them behind a common interface (those types that are quite easy to compare via > or < ) and this in turn became a simplification.
What do you think about my implementation, is it worth considering or is your version more productive/cleaner code?🧐