electron/shell
trop[bot] 1a2015c87d
perf: prefer NewFromUtf8Literal() over NewFromUtf8() for string literals (#44427)
* perf: prefer NewFromUtf8Literal() over NewFromUtf8() for string literals

the string length is known at compile time and no need to call ToLocalChecked()

Co-authored-by: Charles Kerr <charles@charleskerr.com>

* perf: string length is known when calling NewFromUtf8(), so use it

Co-authored-by: Charles Kerr <charles@charleskerr.com>

* perf: remove unnecessary calls to c_str()

these just force the code being called to have to recalculate the string length

Co-authored-by: Charles Kerr <charles@charleskerr.com>

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-10-28 10:51:41 -05:00
..
app fix: trace-startup crashing child process on macOS (32-x-y) (#44292) 2024-10-18 11:16:53 -04:00
browser fix: respect setAlwaysOnTop before showInactive on Linux under X11 (#44325) 2024-10-18 16:19:43 -04:00
common perf: prefer NewFromUtf8Literal() over NewFromUtf8() for string literals (#44427) 2024-10-28 10:51:41 -05:00
renderer perf: prefer NewFromUtf8Literal() over NewFromUtf8() for string literals (#44427) 2024-10-28 10:51:41 -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