mirror of
https://github.com/denoland/deno.git
synced 2024-12-26 17:19:06 -05:00
0b4770fa7d
Reduce the number of copies and allocations of script code by carrying around ownership/reference information from creation time. As an advantage, this allows us to maintain the identity of `&'static str`-based scripts and use v8's external 1-byte strings (to avoid incorrectly passing non-ASCII strings, debug `assert!`s gate all string reference paths). Benchmark results: Perf improvements -- ~0.1 - 0.2ms faster, but should reduce garbage w/external strings and reduces data copies overall. May also unlock some more interesting optimizations in the future. This requires adding some generics to functions, but manual monomorphization has been applied (outer/inner function) to avoid code bloat. |
||
---|---|---|
.. | ||
progress_bar | ||
checksum.rs | ||
console.rs | ||
diff.rs | ||
display.rs | ||
draw_thread.rs | ||
file_watcher.rs | ||
fs.rs | ||
logger.rs | ||
mod.rs | ||
path.rs | ||
text_encoding.rs | ||
time.rs | ||
unix.rs | ||
v8.rs | ||
windows.rs |