]> source.dussan.org Git - nextcloud-server.git/commit
limit constructing of result objects in file search
authorRobin Appelman <robin@icewind.nl>
Wed, 10 Mar 2021 17:46:18 +0000 (18:46 +0100)
committerRobin Appelman <robin@icewind.nl>
Thu, 11 Mar 2021 13:49:57 +0000 (14:49 +0100)
commit424db15deaef20856e29ba1c886f06864a393eea
tree26b9df80afe012ea2e8ecde06302b2346f73a78c
parent95cddb84e2d07f105d7120a4f7b37c65419c0943
limit constructing of result objects in file search

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>
apps/files/lib/Search/FilesSearchProvider.php
lib/private/Search/Provider/File.php