-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
limit constructing of result objects in file search #26049
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
psalm is not happy
Looks happy enough to me? |
even thought we currently have no proper way of limiting the search itself, we can at least limit the construction of the result objects. this saves about 40% of the time spend in the search request in my local testing Signed-off-by: Robin Appelman <robin@icewind.nl>
12fdc19
to
84b2d02
Compare
extended it to also work for the old search endpoint (mainly for backport reasons) |
Signed-off-by: Robin Appelman <robin@icewind.nl>
84b2d02
to
b62ee57
Compare
/backport to stable21 |
/backport to stable20 |
even thought we currently have no proper way of limiting the search itself, we can at least limit the construction of the result objects.
this saves about 40% of the time spend in the search request in my local testing when the search query matches a large number of files.
Signed-off-by: Robin Appelman robin@icewind.nl