[wp-trac] [WordPress Trac] #36335: Next generation: core autoloader proposal

WordPress Trac noreply at wordpress.org
Fri Oct 2 02:00:30 UTC 2020


#36335: Next generation: core autoloader proposal
-----------------------------+-----------------------------
 Reporter:  dnaber-de        |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------------

Comment (by jqz):

 Bump.  The number of PHP files in WordPress (and, e.g., WooCommerce) seems
 to be increasing more quickly than Moore’s law can keep up with.  Most of
 the page load time is taken up parsing files whose code will never be
 executed.

 To begin with, just moving the existing classes into a PSR-0/4 compliant
 directory structure and having an autoloader for them would be a great
 step forwards.  It would not require introducing namespaces or using
 Composer.  The classes already seem to have PSR-0/4-compliant names, just
 not filenames.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/36335#comment:251>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list