Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove outdated performance tips #8556

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

Merged
merged 1 commit into from
Oct 29, 2017
Merged

Remove outdated performance tips #8556

merged 1 commit into from
Oct 29, 2017

Conversation

Tobion
Copy link
Contributor

@Tobion Tobion commented Oct 29, 2017

I've just realized there is an ongoing effort to rewrite this in #8410 and #7960.
But if those are not merged soon, I'd suggest to merge this first so that we can at least solve the broken doc and people don't try to repeatedly fix this, like me and #8332

-------------------------------

Another solution is to cache the location of each class after it's located
the first time. Symfony comes with a class - :class:`Symfony\\Component\\ClassLoader\\ApcClassLoader` -
Copy link
Contributor Author

Choose a reason for hiding this comment

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

component deprecated

.. index::
single: Performance; Bootstrap files

Use Bootstrap Files
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not recommended anymore, esp. with php 7

Copy link
Member

Choose a reason for hiding this comment

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

technically this is still relevant for php 5 (as you know), but I'm +1 for removing it... because users already have this code - PHP 5 users don't need to take any action.

@@ -96,8 +96,7 @@ value too using the ``realpath_cache_ttl`` option:
Use Composer's Class Map Functionality
--------------------------------------

By default, the Symfony Standard Edition uses Composer's autoloader
in the `autoload.php`_ file. This autoloader is easy to use, as it will
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does not exist anymore since symfony/symfony-standard#1056

.. index::
single: Performance; Bootstrap files

Use Bootstrap Files
Copy link
Member

Choose a reason for hiding this comment

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

technically this is still relevant for php 5 (as you know), but I'm +1 for removing it... because users already have this code - PHP 5 users don't need to take any action.

@weaverryan
Copy link
Member

Thanks @Tobion!

@weaverryan weaverryan merged commit d21e200 into symfony:3.3 Oct 29, 2017
weaverryan added a commit that referenced this pull request Oct 29, 2017
This PR was merged into the 3.3 branch.

Discussion
----------

Remove outdated performance tips

I've just realized there is an ongoing effort to rewrite this in #8410 and #7960.
But if those are not merged soon, I'd suggest to merge this first so that we can at least solve the broken doc and people don't try to repeatedly fix this, like me and #8332

Commits
-------

d21e200 Remove outdated performance tips
@Tobion Tobion deleted the patch-5 branch October 30, 2017 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants