electron/shell/renderer/api
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
..
context_bridge perf: use v8::Local<v8::Object> as the key in ObjectCache (#43662) 2024-09-10 09:21:21 -05:00
electron_api_context_bridge.cc chore: remove unused class electron::ObjectLifeMonitor (#43104) 2024-07-30 11:45:16 -04:00
electron_api_context_bridge.h fix: correctly track receiver for methods called via ctx bridge (#39978) 2023-10-18 10:21:42 -04: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 refactor: declare gin::Wrapper subclasses as final (#43566) 2024-09-04 20:37:51 -05:00
electron_api_spell_check_client.cc fix: -Wunsafe-buffer-usage warning in HasWordCharacters() (#44170) 2024-10-09 17:07:20 -05:00
electron_api_spell_check_client.h chore: bump chromium to 128.0.6611.0 (32-x-y) (#43017) 2024-07-25 11:24:11 +02:00
electron_api_web_frame.cc perf: prefer NewFromUtf8Literal() over NewFromUtf8() for string literals (#44427) 2024-10-28 10:51:41 -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 feat: add webUtils module with getPathForFile method (#38776) 2023-11-20 15:59:36 -08:00