electron/shell/common/gin_helper
Charles Kerr 7e9eb9e3f1
perf: avoid duplicate calculations in gin_helper::Dictionary getters (#43073)
* perf: cache the dictionary handle

* refactor: prefer result.IsJust() over !result.IsNothing()

for consistency

* refactor: prefer maybe.FromMaybe() over maybe.IsJust() && maybe.FromJust()

the inlined code is simpler

* refactor: simplify Get() impl

* refactor: add private helper Dictionary::MakeKey()

refactor: add private helper Dictionary::MakeHiddenKey()
2024-07-29 12:43:28 -05:00
..
accessor.h chore: enable check raw ptr fields (#38167) 2023-05-11 16:07:39 -04:00
arguments.cc chore: migrate base::StringPiece to std::string_view (#40915) 2024-01-10 19:00:37 -06:00
arguments.h chore: migrate base::StringPiece to std::string_view (#40915) 2024-01-10 19:00:37 -06:00
callback.cc refactor: add gin_helper::Dictionary::CreateEmpty() helper (#39547) 2023-08-21 10:43:41 +09:00
callback.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
cleaned_up_at_exit.cc refactor: use std::erase() (#41881) 2024-04-19 10:55:59 -05:00
cleaned_up_at_exit.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
constructible.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
constructor.h refactor: update gin_helper/function_template (#41534) 2024-03-25 10:01:54 +01:00
destroyable.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
destroyable.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
dictionary.h perf: avoid duplicate calculations in gin_helper::Dictionary getters (#43073) 2024-07-29 12:43:28 -05:00
error_thrower.cc chore: migrate base::StringPiece to std::string_view (#40915) 2024-01-10 19:00:37 -06:00
error_thrower.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
event.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
event.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
event_emitter.h chore: remove unused #includes (#42971) 2024-07-22 11:31:32 +02:00
event_emitter_caller.cc fix: utilityProcess exit codes (#42297) 2024-06-07 10:06:00 +02:00
event_emitter_caller.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
event_emitter_template.cc refactor: simplify events (#37099) 2023-02-13 13:39:18 -08:00
event_emitter_template.h refactor: simplify events (#37099) 2023-02-13 13:39:18 -08:00
function_template.cc chore: remove unused #includes (#42971) 2024-07-22 11:31:32 +02:00
function_template.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
function_template_extensions.h chore: replace absl::optional<T> with std::optional<T> (#40928) 2024-01-10 16:23:35 -06:00
locker.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
locker.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
microtasks_scope.cc fix: crash in utilityProcess when generating code from strings (#38014) 2023-04-20 09:27:02 +09:00
microtasks_scope.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
object_template_builder.cc chore: migrate base::StringPiece to std::string_view (#40915) 2024-01-10 19:00:37 -06:00
object_template_builder.h chore: migrate base::StringPiece to std::string_view (#40915) 2024-01-10 19:00:37 -06:00
persistent_dictionary.cc
persistent_dictionary.h perf: avoid duplicate calculations in gin_helper::Dictionary getters (#43073) 2024-07-29 12:43:28 -05:00
pinnable.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
promise.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
promise.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
trackable_object.cc chore: fix clang-tidy warnings (#38079) 2023-04-26 10:09:54 -04:00
trackable_object.h refactor: KeyWeakMap cleanup (#41242) 2024-02-06 09:18:05 -06:00
wrappable.cc chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
wrappable.h chore: bump chromium to 111.0.5544.3 (main) (#36820) 2023-02-03 12:43:42 +01:00
wrappable_base.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00