Skip to content

Move findBinaryFinder and isFunctionEnabled away from OC_Helper - #33593

Merged
CarlSchwan merged 1 commit into
masterfrom
improve-binary-caching
Aug 24, 2022
Merged

Move findBinaryFinder and isFunctionEnabled away from OC_Helper#33593
CarlSchwan merged 1 commit into
masterfrom
improve-binary-caching

Conversation

@CarlSchwan

Copy link
Copy Markdown
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 teamAugust 18, 2022 08:58
@CarlSchwanCarlSchwan self-assigned this Aug 18, 2022
@CarlSchwan
CarlSchwan requested review from ArtificialOwl, blizzz and come-nc and removed request for a teamAugust 18, 2022 08:58
@CarlSchwan
CarlSchwanforce-pushed the improve-binary-caching branch from b2e9370 to 8b99dbfCompareAugust 18, 2022 08:59
@CarlSchwan
CarlSchwanforce-pushed the improve-binary-caching branch 2 times, most recently from 9351f1d to 7669331CompareAugust 18, 2022 10:04
Comment threadlib/private/legacy/OC_Helper.php Outdated
Comment threadlib/private/BinaryFinder.php Outdated
Comment threadtests/lib/LargeFileHelperGetFileSizeTest.php Outdated
Comment threadlib/private/App/Platform.php Fixed
Comment threadlib/private/legacy/OC_Helper.php Fixed
Comment threadlib/private/legacy/OC_Helper.php Fixed
Comment threadlib/private/legacy/OC_Helper.php Fixed
@CarlSchwan
CarlSchwanforce-pushed the improve-binary-caching branch from 27d6950 to d253787CompareAugust 23, 2022 11:05
Comment threadlib/private/Mail/Mailer.php Outdated
Comment threadlib/private/Server.php Outdated
@CarlSchwan
CarlSchwanforce-pushed the improve-binary-caching branch from d253787 to 338ea06CompareAugust 23, 2022 12:29
@CarlSchwan
CarlSchwanforce-pushed the improve-binary-caching branch from 338ea06 to 746a529CompareAugust 23, 2022 13:22
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>
@CarlSchwan
CarlSchwanforce-pushed the improve-binary-caching branch from 746a529 to 9b8ca9aCompareAugust 23, 2022 17:44
Comment threadlib/private/Mail/Mailer.php
@CarlSchwan
CarlSchwan merged commit bd7ab89 into masterAug 24, 2022
@CarlSchwan
CarlSchwan deleted the improve-binary-caching branch August 24, 2022 11:09
@blizzzblizzz mentioned this pull request Aug 24, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsperformance 🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@CarlSchwan@nickvergessen@ChristophWurst@blizzz@github-advanced-security@come-nc