puzpuzpuz / xsync

Concurrent data structures for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generic map

vearutop opened this issue · comments

Now that type parameters are coming to Go, it might be an optimization opportunity to reduce usages of interface{} with generics.

Indeed it would be a good enhancement. #29 might be needed to get rid of interface{} for keys, but otherwise, the migration should be straightforward. If there is any demand for generics support, I'm going to implement it. Contributions are also welcome.