[Solar-talk] Proposal: Remove namespace to Solar::loadClass()/factory()

Travis Swicegood development at domain51.com
Tue Nov 7 09:58:15 PST 2006


Hi all,

Rodrigo Moraes wrote:
> I wonder, however, if namespaces would have a big performance impact
> in loadClass()? For example, I add 'Tipos' as my primary namespace but
> I really have just one class to be overriden - then every loadClass()
> call would check its existence before checking the Solar namespace.
> What do you think?

The performance hit would be there, however, the code does still perform
an if(class_exists()) before attempting to load files.  As soon as I get
the concrete parameter in the code and repost the patch, I'll run some
benchmarking on simple loadClass() calls and see how much longer the
patched code takes compared to the original code.

-Travis



More information about the solar-talk mailing list