electron/shell
trop[bot] c3321715e3
perf: prefer NewFromUtf8Literal() over NewFromUtf8() for string literals (#44428)
* 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 13:03:22 -04:00
..
app fix: trace-startup crashing child process on macOS (#44275) 2024-10-16 16:33:45 -04:00
browser fix: crash on netlog connection error (#44418) 2024-10-28 12:56:59 +01:00
common perf: prefer NewFromUtf8Literal() over NewFromUtf8() for string literals (#44428) 2024-10-28 13:03:22 -04:00
renderer perf: prefer NewFromUtf8Literal() over NewFromUtf8() for string literals (#44428) 2024-10-28 13:03:22 -04:00
services/node fix: -Wunsafe-buffer-usage warning in ChunkedDataPipeReadableStream (#44211) 2024-10-14 10:46:24 +02:00
utility chore: remove unused base/ includes (#43688) 2024-09-12 16:05:37 +02:00