mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-19 09:17:21 -04:00
refactor(metadata_v2): phmap is as least as fast as F14 (and smaller)
This commit is contained in:
parent
43e42994cb
commit
6cb133c99b
@ -49,7 +49,6 @@
|
|||||||
#include <fmt/ranges.h>
|
#include <fmt/ranges.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <folly/container/F14Set.h>
|
|
||||||
#include <folly/portability/Stdlib.h>
|
#include <folly/portability/Stdlib.h>
|
||||||
#include <folly/portability/Unistd.h>
|
#include <folly/portability/Unistd.h>
|
||||||
#include <folly/small_vector.h>
|
#include <folly/small_vector.h>
|
||||||
@ -529,7 +528,7 @@ class metadata_v2_data {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
template <typename K>
|
template <typename K>
|
||||||
using set_type = folly::F14ValueSet<K>;
|
using set_type = phmap::flat_hash_set<K>;
|
||||||
|
|
||||||
int find_inode_offset(inode_rank rank) const {
|
int find_inode_offset(inode_rank rank) const {
|
||||||
return find_inode_rank_offset(meta_, rank);
|
return find_inode_rank_offset(meta_, rank);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user