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

Reply via email to