Open Kha opened 1 year ago
This was discussed at around https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/running.20.60cache.20get.60.20as.20part.20of.20every.20.60lake.20build.60/near/390475641. From a cursory glance, most Lean dependencies are only used in macro rules and elaborators, which could be moved out and made builtin_. Avoiding Lean.Parser/Elab should already provide a significant reduction of the closure and thus load time.
Lean
builtin_
Lean.Parser/Elab
Ah, the output of mathlib's lake exe graph --to Lake --include-deps should also be helpful
lake exe graph --to Lake --include-deps
This was discussed at around https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/running.20.60cache.20get.60.20as.20part.20of.20every.20.60lake.20build.60/near/390475641. From a cursory glance, most
Lean
dependencies are only used in macro rules and elaborators, which could be moved out and madebuiltin_
. AvoidingLean.Parser/Elab
should already provide a significant reduction of the closure and thus load time.