gosortmap icon indicating copy to clipboard operation
gosortmap copied to clipboard

Reflections overhead

Open KoNekoD opened this issue 1 year ago • 0 comments

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?🧐

KoNekoD avatar Aug 05 '24 09:08 KoNekoD