[Solar-talk] Making a Solar::callback() method

Ian Szewczyk roamzero at gmail.com
Fri Aug 3 15:01:06 CDT 2007


Part of the issue I think with the class stack are the constant
file_exists checks as the stack is scanned (at least on my system
anyway, I test my scripts with xDebug and WinCacheGrind).  This
becomes an even bigger issue if you have fiddled with the php include
path, because the Solar fileExists checks goes through that too I
think. One solution might be caching absolute paths for found classes
when used in a production environment. Make it something you can
toggle in the config if you are developing and moving files around
alot.

On 8/3/07, Pierre Oztel <pierre.oztel at gmail.com> wrote:
> What I did back then was removing all View Helpers. I only kept the
> getText() and getTextRaw() method, and made them available as Solar_View
> methods.
>
> This means no class_stack, no template_path_stack, no layouts. One view had
> one possible template file, and each action had their own view : very simple
> and fast. It was just a test, I am not using it.
>
>
> I will now (in process) function refactor the callback in Sql package,
> Filter and Valid classes and make an User cache system.
>
> That may sound like crazy but I know exactly whats going on in the execution
> scope, so I'll take advantage of that.
>
> 2007/8/3, Rodrigo Moraes <rodrigo.moraes at gmail.com>:
> >
> > On 8/3/07, Pierre Oztel wrote:
> >
> > > Ah, I forgot to mention that I did some speed tests with the Solar_View
> Object with and without the __call hook.
> > >
> > > In those tests, i removed View helpers completely. I had average times
> of 100ms (without any opcode cache) with the hook, it falled down to a mean
> of 20ms for this script on the bookmark application.
> >
> > Please clarify a bit: you tested the bookmarks app with Solar_View using
> call_user_func_array() versus using your callback() function?
> >
> > -- rodrigo
> >
> > _______________________________________________
> > Solar-talk mailing list
> > Solar-talk at lists.solarphp.com
> > http://mailman-mail3.webfaction.com/listinfo/solar-talk
> >
> >
>
>
> _______________________________________________
> Solar-talk mailing list
> Solar-talk at lists.solarphp.com
> http://mailman-mail3.webfaction.com/listinfo/solar-talk
>
>


-- 
IAN SZEWCZYK
ian at roamzero.com
roamzero at gmail.com
iaszew01 at louisville.edu


More information about the Solar-talk mailing list