glow icon indicating copy to clipboard operation
glow copied to clipboard

Slow compile times due to compiler issue

Open kettle11 opened this issue 4 years ago • 1 comments

This isn't directly actionable by glow, but I wanted to open an issue to draw attention to it.

I was surprised at how long glow took to compile given its complexity (~14 seconds on my machine).

I asked about it in the Rust compiler team Zulip and they diagnosed it as this issue: https://github.com/rust-lang/rust/issues/65510 (Quadratic slowdown for lookup of bounds on associated types)

@matthewjasper believes this should be fixed by https://github.com/rust-lang/rust/pull/73905

kettle11 avatar Aug 07 '20 22:08 kettle11

So rust-lang/rust#73905 was merged and I decided to see how it impacts glow compile times.

Clean build times of glow on stable: ~15.3 seconds Clean build times of glow on nightly: ~3.6 seconds

This is a fantastic improvement! :)

Thanks @matthewjasper!

kettle11 avatar Oct 07 '20 01:10 kettle11