rfc:autoload_classmap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
rfc:autoload_classmap [2021/03/19 18:36] marandallrfc:autoload_classmap [2021/03/19 18:37] marandall
Line 38: Line 38:
 ===== Performance ===== ===== Performance =====
  
-Testing suggests that running through an internal classmap delivers 5% performance increase vs a userland function call (e.g. composer). +Testing suggests that autoloading through an internal classmap delivers around 5% performance increase vs a userland function call (e.g. composer). 
  
 This is 5% of the cost of the autoloading, and not the execution as a whole. Testing was performed by creating 50,000 empty classes each in an individual file, and then autoloading every one of them in a loop. Amount of classes was purely to help reduce noise. This is 5% of the cost of the autoloading, and not the execution as a whole. Testing was performed by creating 50,000 empty classes each in an individual file, and then autoloading every one of them in a loop. Amount of classes was purely to help reduce noise.
rfc/autoload_classmap.txt · Last modified: 2021/04/06 05:32 by marandall