For performance, the goal is:
- As a minimum, to be competitive with existing solutions (currently looking at symfony and Composer)
- To be 90% competitive with the theoretical optimum. This means, we may accept to be 10% slower than theoretically possible, if this can buy us architectural quality.
Optimize our loops
Both the Symfony UniversalClassLoader and the Composer ClassLoader have a minor performance flaw, if set up with too many namespaces:
For every direct lookup, they loop over the entire array of registered namespaces.