{"id":19037192,"date":"2026-10-05T21:15:58","date_gmt":"2026-10-05T21:15:58","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/composer-autoloader-optimization\/"},"modified":"2026-10-05T21:15:58","modified_gmt":"2026-10-05T21:15:58","slug":"composer-autoloader-optimization","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/composer-autoloader-optimization\/","title":{"rendered":"Composer autoloader optimization"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Thanks for this plugin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I noticed the composer autoloader is making a lot of file_exist checks (1788) before loading the files, which has an impact on performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Would it be possible for it to be built with <code><a href=\"https:\/\/getcomposer.org\/doc\/articles\/autoloader-optimization.md#optimization-level-2-a-authoritative-class-maps\">--classmap-authoritative<\/a><\/code> instead? This will stop the file_exist checks and speed up the backend processing time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If interested more details can be found below with benchmarks of the possible improvements:<br \/><a href=\"https:\/\/github.com\/WordPress\/developer-blog-content\/issues\/468\">https:\/\/github.com\/WordPress\/developer-blog-content\/issues\/468<\/a><\/p>\n","protected":false},"template":"","class_list":["post-19037192","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19037192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19037192\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19037192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}