Skip to content

Commit

Permalink
Relax bounds on many methods to be minimal
Browse files Browse the repository at this point in the history
This patch removes a large number of unnecessary bounds. Beyond the
obvious ones (like iterators do not require `Hash` and constructors do
not need `BuildHasher`), the biggest change is that the thread-safety
bounds are now _only_ placed on methods that modify the map. The
reasoning here is simple enough: if the threads-safety bounds do not
hold for K/V, then the map must be empty, and if the map is empty, the
read operations are fine even if the K/V type is not thread-safe.
  • Loading branch information
jonhoo committed Feb 26, 2020
1 parent 825cb24 commit cbe3a00
Show file tree
Hide file tree
Showing 3 changed files with 1,149 additions and 1,110 deletions.
Loading

0 comments on commit cbe3a00

Please sign in to comment.