perf: use absl::flat_hash_map instead of std::unordered_map (#46202)

* perf: make ElectronUsbDelegate::controller_map_ an absl::flat_hash_map

* perf: make ElectronSerialDelegate::controller_map_ an absl::flat_hash_map

* perf: make ElectronHidDelegate::controller_map_ an absl::flat_hash_map

* perf: make FrameTreeNodeIdMap an absl::flat_hash_map

* perf: make AutofillDriverFactory::driver_map_ an absl::flat_hash_map

* perf: make asar::Archive::external_files_ an absl::flat_hash_map

* perf: make VersionIdMap an absl::flat_hash_map

* perf: make ObjectCache::proxy_map_ an absl::flat_hash_map

* docs: add TODO to investigate absl map in KeyWeakMap
This commit is contained in:
Charles Kerr 2025-03-24 04:09:14 -05:00 committed by GitHub
parent 964090d086
commit 7ed4f0ca27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 24 additions and 24 deletions

View file

@ -69,6 +69,7 @@ class KeyWeakMap {
}
// Map of stored objects.
// TODO(ckerr): can absl::flat_hash_map be used safely here?
std::unordered_map<K, Mapped> map_;
};