wvwwvwwv / scalable-concurrent-containers

High performance containers and utilities for concurrent and asynchronous programming
Apache License 2.0
285 stars 14 forks source link

Remove unnecessary trait bounds on container types #135

Closed JieningYu closed 3 months ago

JieningYu commented 3 months ago

For example, HashMaps have unnecessary trait bounds on type definition (where K: Hash + Eq), and these could make types using scc containers inherent these unnecessary bounds.

wvwwvwwv commented 3 months ago

I agree, I’ll remove those bounds in the upcoming release: hopefully in 2 weeks.

wvwwvwwv commented 3 months ago

Uploaded a fix; it is not complete since K, V: 'static is remaining in HashIndex, and TreeIndex is not addressed. Plus, there are still a lot of methods that don't require those trait bounds. -> All of those remaining issues will be addressed later.