Skip to content

Use APCu caching of composer - #9442

Merged
rullzer merged 2 commits into
masterfrom
feature/noid/use_composer_apcu
May 14, 2018
Merged

Use APCu caching of composer#9442
rullzer merged 2 commits into
masterfrom
feature/noid/use_composer_apcu

Conversation

@rullzer

Copy link
Copy Markdown
Member

Should potentially shave of a few ms when loading classes of apps that
don't ship their own autoloader.

Signed-off-by: Roeland Jago Douma roeland@famdouma.nl

Should potentially shave of a few ms when loading classes of apps that
don't ship their own autoloader.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>

@ChristophWurstChristophWurst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 fine by me

Comment threadlib/base.php
} catch (\Exception $ex) {
}

self::$composerAutoloader->setApcuPrefix($instanceId . '-mainComposer');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHP Fatal error: Uncaught Error: Call to undefined method Composer\Autoload\ClassLoader::setApcuPrefix() in one of the integration tests 🙈

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like dark magic... lets see why

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@codecov

codecovBot commented May 14, 2018

Copy link
Copy Markdown

Codecov Report

Merging #9442 into master will decrease coverage by <.01%.
The diff coverage is 0%.

@@ Coverage Diff @@## master #9442 +/- ##
===========================================
- Coverage 51.61% 51.6% -0.01% - Complexity 25694 25698 +4 
===========================================
Files 1638 1638 Lines 96318 96324 +6 Branches 1393 1393 ===========================================
- Hits 49712 49706 -6 - Misses 46606 46618 +12
Impacted FilesCoverage ΔComplexity Δ
lib/base.php2.14% <0%> (-0.01%)168 <0> (ø)
apps/files_versions/lib/AppInfo/Application.php54.54% <0%> (-14.21%)2% <0%> (-1%)
apps/files_trashbin/lib/Expiration.php90.32% <0%> (-1.62%)29% <0%> (ø)
apps/files_trashbin/lib/Sabre/TrashFile.php0% <0%> (ø)15% <0%> (+1%)⬆️
apps/files_trashbin/lib/Sabre/TrashFolder.php0% <0%> (ø)24% <0%> (+2%)⬆️
apps/files_trashbin/lib/Sabre/PropfindPlugin.php0% <0%> (ø)9% <0%> (+2%)⬆️
...pps/files_trashbin/lib/Sabre/TrashFolderFolder.php0% <0%> (ø)24% <0%> (+2%)⬆️
apps/files_trashbin/lib/Sabre/TrashFolderFile.php0% <0%> (ø)15% <0%> (+1%)⬆️
apps/user_ldap/templates/renewpassword.php0% <0%> (ø)0% <0%> (ø)⬇️
apps/files_trashbin/lib/Helper.php70.68% <0%> (ø)17% <0%> (ø)⬇️
... and 2 more

@MorrisJobkeMorrisJobke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 14, 2018
@rullzer
rullzer merged commit 8657f56 into masterMay 14, 2018
@rullzer
rullzer deleted the feature/noid/use_composer_apcu branch May 14, 2018 19:05
@nickvergessen

Copy link
Copy Markdown
Member

Reverted by #11292 because of #11290

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishenhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@rullzer@nickvergessen@MorrisJobke@icewind1991@ChristophWurst