Zulip Chat Archive

Stream: general

Topic: group_theory/subgroup is slow


Mario Carneiro (Aug 10 2021 at 04:55):

Does anyone else observe group_theory/subgroup.lean compiling extremely slowly? Opening it in the editor it seems like it takes 1-3 seconds per command, including one line trivial rfl proofs. I haven't timed it but it looks like the whole file (which is 2200 lines) takes about 10-15 minutes

Mario Carneiro (Aug 10 2021 at 04:57):

The obvious culprit would be the @[to_additive] attribute and/or running user attributes in general

Gabriel Ebner (Aug 10 2021 at 09:28):

Takes about 15 seconds here on mathlib master (both in the editor as well as on the command line).

Gabriel Ebner (Aug 10 2021 at 09:29):

One notable performance issue of to_additive is that it disables async elaboration of proofs (it waits for the proof on the main thread).


Last updated: Dec 20 2023 at 11:08 UTC