electron/shell/common/asar
Charles Kerr c0fdf09f28
perf: on Windows, make Archive::HeaderIntegrity() faster (#46509)
* perf: do not clone the map each time we call Archive::HeaderIntegrity()

* perf: use absl::flat_hash_map for the integrity cache

* perf: do not clone the JSON payload string

* perf: preallocate capacity for the integrity cache

* perf: use move variant of insert_or_assign()

* refactor: simplify integrity cache building

remove unnecessary std::optional<>

* refactor: use base::FindOrNull()

* refactor: remove unused #includes

* refactor: make variable types explicit

* fix: make res_size unsigned

* refactor: put GetIntegrityConfigCache() in an unnamed namespace

refator: put LoadIntegrityConfig() in an unnamed namespace

* fix: oops, missing rel_path_utf8 key

* fix: oops, fix Wunreachable-code-return
2025-04-07 11:10:29 +02:00
..
archive.cc refactor: prefer member initializers in asar structs (#43883) 2024-09-23 22:37:18 -07:00
archive.h perf: use absl::flat_hash_map instead of std::unordered_map (#46202) 2025-03-24 10:09:14 +01:00
archive_mac.mm chore: remove unused #includes (#42971) 2024-07-22 11:31:32 +02:00
archive_win.cc perf: on Windows, make Archive::HeaderIntegrity() faster (#46509) 2025-04-07 11:10:29 +02:00
asar_util.cc refactor: migrate hashing code to new upstream crypto::hash API (#46237) 2025-03-25 15:01:17 -05:00
asar_util.h refactor: take a uint8_t span in ValidateIntegrityOrDie() (#43592) 2024-09-06 20:22:44 -05:00
scoped_temporary_file.cc fix: -Wunsafe-buffer-usage warnings in asar file IO (#43624) 2024-09-09 16:34:42 -04:00
scoped_temporary_file.h chore: replace absl::optional<T> with std::optional<T> (#40928) 2024-01-10 16:23:35 -06:00