electron/shell/renderer/api
trop[bot] a6b34dca26
perf: prefer NewFromUtf8Literal() over NewFromUtf8() for string literals (#44429)
* 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 11:06:10 -05:00
..
context_bridge perf: use v8::Local<v8::Object> as the key in ObjectCache (#43568) 2024-09-05 10:08:42 +02:00
electron_api_context_bridge.cc chore: remove unused class electron::ObjectLifeMonitor (#43089) 2024-07-30 08:25:28 -05:00
electron_api_context_bridge.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_crash_reporter_renderer.cc chore: rename built-in modules to bindings to match naming update in node (#37182) 2023-02-09 10:31:38 +09:00
electron_api_ipc_renderer.cc fix: -Wunsafe-buffer-usage warning in ChunkedDataPipeReadableStream (#44223) 2024-10-14 11:37:40 -05:00
electron_api_spell_check_client.cc fix: -Wunsafe-buffer-usage warning in HasWordCharacters() (#44171) 2024-10-09 22:25:34 -05:00
electron_api_spell_check_client.h refactor: put empty virtual function definitions in header (#43285) 2024-08-12 09:56:51 +02:00
electron_api_web_frame.cc perf: prefer NewFromUtf8Literal() over NewFromUtf8() for string literals (#44429) 2024-10-28 11:06:10 -05:00
electron_api_web_utils.cc feat: add webUtils module with getPathForFile method (#38776) 2023-11-20 15:59:36 -08:00
electron_api_web_utils.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00