-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Update performance.rst #14618
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
Update performance.rst #14618
Conversation
Antoine, even if you are technically correct, I wouldn't add this to the docs. This article is about getting the most performance (in production mostly) so I think it's better to only show the |
@javiereguiluz yes i see your point, lets not change still, do you have an idea on the question in the PR desc? it feels weird actually |
I'm not sure about the answer to that question. Even Composer docs refer to this technique as "class map generation": https://getcomposer.org/doc/articles/autoloader-optimization.md#optimization-level-1-class-map-generation |
@javiereguiluz the symfony doc article is about dumping an optimized autoloader for production, and does not rely only on the classmap generation. |
@stof I don't follow you: Composer docs say:
Symfony Docs say:
To me, the two are saying the same thing. |
the command you use is |
so maybe the PR should be: instead of adding the just to rewrite this paragraph:
to
|
Thanks for your proposal Antoine. I used exactly that to reword this PR while merging it. |
Hi
Small hint as described here https://getcomposer.org/doc/articles/autoloader-optimization.md#optimization-level-2-a-authoritative-class-maps
Sometime it is easier to have oneline command than multiples
❔ I have a question also:
The paragraph above mentioned
Execute this command to generate the class map file for production
But in fact the file
vendor/composer/autoload_classmap.php
exists even without this, as it seems to be similar with/without.is it worth a reword or a detail addition? Or a Composer issue?
Thanks