1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/core/examples/http_bench_json_ops
Matt Mastracci fcb5a89d91 refactor(core): Improve ergonomics of managing ASCII strings (#18498)
This is a follow-on to the earlier work in reducing string copies,
mainly focused on ensuring that ASCII strings are easy to provide to the
JS runtime.

While we are replacing a 16-byte reference in a number of places with a
24-byte structure (measured via `std::mem::size_of`), the reduction in
copies wins out over the additional size of the arguments passed into
functions.

Benchmarking shows approximately the same if not slightly less wallclock
time/instructions retired, but I believe this continues to open up
further refactoring opportunities.
2023-04-12 15:49:39 +02:00
..
http_bench_json_ops.js perf(ext/websocket): use opAsync2 to avoid spread deopt (#18525) 2023-03-31 11:43:20 -06:00
main.rs refactor(core): Improve ergonomics of managing ASCII strings (#18498) 2023-04-12 15:49:39 +02:00