Skip to content

Commit

Permalink
Use hashbrown::raw::RawTable for SizedCache (#59)
Browse files Browse the repository at this point in the history
Rather than duplicating the keys in `store` and `order`, we can use
`store: RawTable<usize>` that just indexes `order`.
  • Loading branch information
cuviper authored Jan 7, 2021
1 parent 90cbdc4 commit 9a8db86
Show file tree
Hide file tree
Showing 2 changed files with 171 additions and 162 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ default = ["proc_macro", "async"]
proc_macro = ["async-mutex", "cached_proc_macro", "cached_proc_macro_types"]
async = ["futures", "async-trait"]

[dependencies.hashbrown]
version = "0.9.1"
default-features = false
features = ["raw"]

[dependencies.once_cell]
version = "1"

Expand Down
Loading

0 comments on commit 9a8db86

Please sign in to comment.