Repository navigation
feat: improve workspace symbol performance - #8091
Merged
mhuisi merged 2 commits intoMay 13, 2025
Merged
Conversation
|
Mathlib CI status (docs):
|
mhuisi
force-pushed
the
mhuisi/workspace-symbol-performance
branch
from
April 28, 2025 15:17
e3ffd6c to
df7e874
Compare
mhuisi
marked this pull request as ready for review
April 28, 2025 15:29
Contributor
Author
|
!bench |
ghost
pushed a commit
to leanprover-community/batteries
that referenced
this pull request
Apr 28, 2025
ghost
pushed a commit
to leanprover-community/mathlib4
that referenced
this pull request
Apr 28, 2025
Collaborator
|
Here are the benchmark results for commit df7e874. Benchmark Metric Change
=====================================================================
+ Init.Data.List.Sublist re-elab -j4 branch-misses -1.8% (-14.2 σ)
+ Std.Data.Internal.List.Associative branch-misses -1.2% (-15.0 σ)
+ bv_decide_inequality.lean task-clock -4.1% (-15.0 σ)
- ilean roundtrip parse 3.9% (12.2 σ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR improves the performance of the workspace symbol request.
In my testing on my machine, the time to respond to the workspace symbol request containing just
cin Mathlib has been reduced to ~1200ms from ~11000ms.We also serve the nearest-matching 1000 symbols instead of just the first 100 now and use the length of the symbol as a tie-breaker for when the fuzzy matching score is equal.
Some further improvements might be gained in the future when #8087 is fixed and we can switch back to
qsort.