Closed
Description
Hey folks,
I was told to create an issue here. When compiling crates, I often see this crate holding up the overall process, and because others are depending on it, it grabs one cpu core and the others are literally idle and I need to wait.
Yeah this contains some giant match statements which are slow. We could perhaps use something like phf_map here but that may not improve compile times.
-- @Manishearth
I'd be thankful if there are some efforts to make it faster. :)
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
matthiaskrgr commentedon Oct 31, 2018
item-bodies checking
andmatch checking
take a lot of time:RUSTFLAGS="-Z time-passes -Ccodegen-units=1" cargo check
building:
RUSTFLAGS="-Z time-passes -Ccodegen-units=1" cargo build --release
jens1o commentedon Oct 31, 2018
happy to know I'm not the only one :)
jens1o commentedon Dec 14, 2018
Is there something to do to get this triaged?
Auto merge of #57494 - dotdash:expand, r=<try>
Auto merge of #57546 - dotdash:match, r=<try>
Rollup merge of rust-lang#57494 - dotdash:expand, r=nikomatsakis
unicode_normalization
benchmark fromrustc-perf
is slow #57718nnethercote commentedon Jan 27, 2019
Note that #57718 has some detailed profile measurements.
nnethercote commentedon Oct 9, 2019
Good news: since January 18, when this benchmark was added to the rustc-perf suite, compilation has gotten more than 2x faster.
#64673 and #65089 are two recent changes that account for a big chunk of the improvements.
mati865 commentedon Oct 12, 2019
On my box running
build --release
on unicode-rs/unicode-normalization@7c23cc9 takes less than 2 seconds (withtarget
directory removed).@jens1o is this still slow for you?
nnethercote commentedon Oct 16, 2019
#65260 reduced compile time some more, by up to 7%.
jens1o commentedon Oct 19, 2019
It is faster now, and I'm happy with it. :) Shall we close this issue?
nnethercote commentedon Oct 19, 2019
Yes!
p.s. #65480 just chopped off another 5-7% :)
nnethercote commentedon Nov 19, 2019
#66537 chops off another 2.4%.