Skip to content

feat: delay elab of full file - #15222

Draft
AugustDeer wants to merge 3 commits into
leanprover:masterfrom
AugustDeer:master
Draft

AugustDeer wants to merge 3 commits into
leanprover:masterfrom
AugustDeer:master

Conversation

@AugustDeer

Copy link
Copy Markdown

This PR delays the elaboration of future commands to avoid repeated recompilation of an entire file while typing. The delay defaults to 100ms, and can be customized with a cmdline option.

Closes #15013

AI Usage Notice: This PR was developed with the help of Deepseek Flash 4.1 running through the Opencode harness. All AI-written code was reviewed and verified by the author. Communication regarding this PR (including this description and the commit descriptions) were and will continue to be entirely human. I take full responsibility for my work.

Delays the elaboration of future commands to avoid repeated
recompilation of an entire file while typing.

Fixes (leanprover#15013)
Adds an cmdline option to change the delay for elaborating a file. Also
reduces the delay during testing.
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Very high CPU usage when making any edits at the top of a file

1 participant