electron/shell
trop[bot] 15aeb87370
perf: avoid redundant Promise.GetContext calls (#43619)
refactor: avoid redundant Promise.GetContext calls

Several Promise methods call `GetContext()` multiple times. From looking
at the assembly in obj/electron/electron_lib/promise.o, these redundant
calls are actually being made -- they aren't optmized out.

This PR keeps the return value in a local variable to avoid extra calls.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-08 10:37:34 -05:00
..
app fix: delete UvTaskRunner's timers only after they're closed (#43599) 2024-09-06 14:18:51 -05:00
browser refactor: NativeWindow::Create() returns a unique_ptr (#43606) 2024-09-06 19:29:50 -05:00
common perf: avoid redundant Promise.GetContext calls (#43619) 2024-09-08 10:37:34 -05:00
renderer refactor: declare gin::Wrapper subclasses as final (#43566) 2024-09-04 20:37:51 -05:00
services/node refactor: declare gin::Wrapper subclasses as final (#43566) 2024-09-04 20:37:51 -05:00
utility refactor: run Windows SelectFileDialog out of process (#42780) 2024-07-08 10:31:10 +02:00