Skip to content
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

Move findBinaryFinder and isFunctionEnabled away from OC_Helper #33593

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

CarlSchwan
Copy link
Member

findBinaryFinder is now a service that is still private but with some
minor optimization (remove the hasKey check).

isFunctionEnabled is now in OCP\Util

Both functions are still kept but all internal usage in nextcloud/server
were migrated to the new usage, so we can remove it in 26.

Before: 2 redis cache requests either hasKey and get or hasKey and set

image

Now: 1 redis cache request (get) or 2 redis cache requests (get and set)

image

@CarlSchwan CarlSchwan requested a review from a team August 18, 2022 08:58
@CarlSchwan CarlSchwan self-assigned this Aug 18, 2022
@CarlSchwan CarlSchwan requested review from ArtificialOwl, blizzz and come-nc and removed request for a team August 18, 2022 08:58
@CarlSchwan CarlSchwan force-pushed the improve-binary-caching branch 2 times, most recently from 9351f1d to 7669331 Compare August 18, 2022 10:04
lib/private/App/Platform.php Fixed Show fixed Hide fixed
lib/private/legacy/OC_Helper.php Fixed Show resolved Hide resolved
lib/private/legacy/OC_Helper.php Fixed Show fixed Hide fixed
lib/private/legacy/OC_Helper.php Fixed Show fixed Hide fixed
lib/private/Server.php Outdated Show resolved Hide resolved
findBinaryFinder is now a service that is still private but with some
minor optimization (remove the hasKey check).

isFunctionEnabled is now in OCP\Util

Both function are still keep but all internal usage in nextcloud/server
were migrated to the new usage, so that we can remove it in 26

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
lib/private/Mail/Mailer.php Show resolved Hide resolved
@CarlSchwan CarlSchwan merged commit bd7ab89 into master Aug 24, 2022
@CarlSchwan CarlSchwan deleted the improve-binary-caching branch August 24, 2022 11:09
@blizzz blizzz mentioned this pull request Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants