Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve compilation time for toplevel include(struct ... end : sig ... end) #832
This is intended to fix MPR#7357, which uses the natural way of specifying an inline signature for a unit without using an external .mli file.
The trick is similar to the one applied for compiling
I'd argue this special case is relevant since it corresponds to the natural way of restricting a unit's signature without specifying an external .mli file. For instance, the change would be beneficial to #217 or to people using that encoding manually.
The trick is currently not applied to
A minor point: I'm not sure about the call to
I'm not sure I'm the best qualified to review this (except for having introduced my share of bugs in this part of the compiler).