about summary refs log tree commit diff
path: root/compiler/rustc_const_eval
diff options
context:
space:
mode:
authorNika Layzell <nika@thelayzells.com>2022-06-18 14:15:03 -0400
committerNika Layzell <nika@thelayzells.com>2022-07-29 17:38:12 -0400
commit6d1650fe45e675cd976a5401067606de325d8ae8 (patch)
treec27afa70251e54a698cdb61da88f07acf278df93 /compiler/rustc_const_eval
parent2f847b81a0d8633f200f2c2269c1c43fe9e7def3 (diff)
downloadrust-6d1650fe45e675cd976a5401067606de325d8ae8.tar.gz
rust-6d1650fe45e675cd976a5401067606de325d8ae8.zip
proc_macro: use crossbeam channels for the proc_macro cross-thread bridge
This is done by having the crossbeam dependency inserted into the
proc_macro server code from the server side, to avoid adding a
dependency to proc_macro.

In addition, this introduces a -Z command-line option which will switch
rustc to run proc-macros using this cross-thread executor. With the
changes to the bridge in #98186, #98187, #98188 and #98189, the
performance of the executor should be much closer to same-thread
execution.

In local testing, the crossbeam executor was substantially more
performant than either of the two existing CrossThread strategies, so
they have been removed to keep things simple.
Diffstat (limited to 'compiler/rustc_const_eval')
0 files changed, 0 insertions, 0 deletions