I have thought about this several times, but it is not so easy to
implement. You would need some kind of inference system that can assess
what impact a change will have on the built container. I'm very skeptical
as to how much time could be saved here.

An alternative approach might be to use a watcher command and re-build the
container before it is accessed via the webserver (similar to the assetic
watch command).

Cheers,
Johannes


On Tue, Dec 20, 2011 at 1:20 PM, Jonathan Ingram <
jonathan.b.ing...@gmail.com> wrote:

> Consider this: in JMSSecurityExtra bundle I have a class that uses
> @PreAuthorize and an expression. I know the said bundle is not symfony
> core but the same idea would apply with other annotations and other
> files, e.g. Twig files.
>
> So in this class, I change one line of code, and, say, just add a
> commented line of code. What if symfony and/or the said bundle could
> figure out that the delta in the file was simply a comment and the
> file thus would not need to be recompiled? I find that such an example
> causes much wasted development time waiting for the cache to compile.
> Similarly, what if the said bundle simply checked to see if the
> annotation's contents changed, or if the method docblock changed, and
> only then recompile?
>
> I know it's an experimental idea and there could be some questions as
> to how many ms you'd actually gain in the long run, but what do you
> think? Is it something worth considering?
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony developers" group.
> To post to this group, send email to symfony-devs@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-devs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to