electron/shell/renderer/api
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
..
context_bridge perf: use v8::Local<v8::Object> as the key in ObjectCache (#43519) 2024-09-04 22:53:06 -05: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 build: make is_mas_build a generated header instead of config (#43737) 2024-09-17 01:38:56 -07:00
electron_api_ipc_renderer.cc fix: -Wunsafe-buffer-usage warning in ChunkedDataPipeReadableStream (#44211) 2024-10-14 10:46:24 +02:00
electron_api_spell_check_client.cc fix: -Wunsafe-buffer-usage warning in HasWordCharacters() (#44133) 2024-10-09 13:02:00 -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 (#44428) 2024-10-28 13:03:22 -04: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