rfc:autoload_classmap
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:autoload_classmap [2021/03/19 18:36] – marandall | rfc:autoload_classmap [2021/04/06 05:32] (current) – marandall | ||
---|---|---|---|
Line 31: | Line 31: | ||
* Always check the classmap first if it is set. | * Always check the classmap first if it is set. | ||
* (If Found) Trigger a TypeError if the key's associated value is not a string. | * (If Found) Trigger a TypeError if the key's associated value is not a string. | ||
- | * (If Found) Use the REQUIRE_ONCE | + | * (If Found) Use the REQUIRE |
* (If Found) Trigger an Error if the relevant class is not defined after including the file specified in the classmap. | * (If Found) Trigger an Error if the relevant class is not defined after including the file specified in the classmap. | ||
Line 38: | Line 38: | ||
===== Performance ===== | ===== Performance ===== | ||
- | Testing suggests that running | + | Testing suggests that autoloading |
This is 5% of the cost of the autoloading, | This is 5% of the cost of the autoloading, |
rfc/autoload_classmap.1616179019.txt.gz · Last modified: 2021/03/19 18:36 by marandall