Open lilyyy411 opened 5 hours ago
Compile times seem fine with -Zpolonius=next
over -Zpolonius
(-Zpolonius=legacy
). However, I don't know how complete polonius-next is.
I don't know how complete polonius-next is
Not very much (but I'm working on it :3), right now -Zpolonius=next
is basically NLLs but with origins (sets of loans) instead of lifetimes (sets of cfg points).
When compiling the following with
-Z polonius
, compilation takes a lot longer than it probably should (an entire 4 seconds on my machine) and it gets much worse with more elements in the array.This is a concern because crates like
unicode-linebreak
use large lookup tables of enum variants. In fact,unicode-linebreak
with its 12996 element lookup table took longer than 30 minutes to compile on my machine before I had to stop it short.Strangely enough, changing the type of
PROBLEM
to&[A; 736]
makes this performance issue not happen.Meta
rustc --version --verbose
: