about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/source-script.js
diff options
context:
space:
mode:
authorNika Layzell <nika@thelayzells.com>2022-05-15 13:46:33 -0400
committerNika Layzell <nika@thelayzells.com>2022-06-17 00:42:26 -0400
commit4d45af9e734ed0e2350290b4705d7931f70349d4 (patch)
tree982e7588463ee54a8acb9a10fced1e3db70fdd37 /src/librustdoc/html/static/js/source-script.js
parent0a049fd30d564d1cbc2d60398de848612a6c8125 (diff)
downloadrust-4d45af9e734ed0e2350290b4705d7931f70349d4.tar.gz
rust-4d45af9e734ed0e2350290b4705d7931f70349d4.zip
Try to reduce codegen complexity of TokenStream's FromIterator and Extend impls
This is an experimental patch to try to reduce the codegen complexity of
TokenStream's FromIterator and Extend implementations for downstream
crates, by moving the core logic into a helper type. This might help
improve build performance of crates which depend on proc_macro as
iterators are used less, and the compiler may take less time to do
things like attempt specializations or other iterator optimizations.

The change intentionally sacrifices some optimization opportunities,
such as using the specializations for collecting iterators derived from
Vec::into_iter() into Vec.

This is one of the simpler potential approaches to reducing the amount
of code generated in crates depending on proc_macro, so it seems worth
trying before other more-involved changes.
Diffstat (limited to 'src/librustdoc/html/static/js/source-script.js')
0 files changed, 0 insertions, 0 deletions