【发布时间】:2015-04-06 01:42:42
【问题描述】:
看不懂composer dump-autoload命令的描述:
If you need to update the autoloader because of new classes in a classmap package for example, you can use "dump-autoload" to do that without having to go through an install or update.
Additionally, it can dump an optimized autoloader that converts PSR-0/4 packages into classmap ones for performance reasons. In large applications with many classes, the autoloader can take up a substantial portion of every request's time. Using classmaps for everything is less convenient in development, but using this option you can still use PSR-0/4 for convenience and classmaps for performance.
为什么会显示 dump ... for performance reasons ?为什么要转储优化的加载程序?
是“转储”还是“出于性能原因转换”?
如果它是“为性能而倾销”,为什么它会说 classmaps for performance ?
如果它是“为性能而转换”,为什么还要转储自动加载器?
我很困惑。
【问题讨论】:
标签: composer-php