Add lazy Renderer service to speedup page load time #66
Conversation
1 similar comment
1 similar comment
@scheb Can you review please? |
1 similar comment
Looks good, thanks! |
So what was the "problem"? The I'm not sure I understand the roots of the problem just looking at this code. |
Btw, why is it the doctrine dependency now? |
@umpirsky but what about some explanation? Was it |
@zerkms Yes, they use it, I just wanted to remove this bundle services from the slowest list. Plus, this seems like a good decoupling. |
If the app uses it anyway - this change is harmful: it increases CPU + memory load @scheb so, the change you accepted made the bundle slower and more memory hungry in favour of @umpirsky performance statistics to look "better" ("better" here in quotes because it only spread the slow path into multiple paths, but in fact does not improve anything). "Looks good, thanks!" --- does it really look that good to you? :-S
Cannot agree with it. Colleagues, I understand that you like nice graphs, but this change makes totally no sense. |
@zerkms After this you can override Adding 2 services is minor since typcal Symfony app can have more then thousands of services. |
That, plus few extra lazy wrappers. All of that only for someone's graphs to look better.
If only it was a problem. I'm off anyway - I shared my thoughts, but you apparently value your performance metrics over actual performance. So, whatever. |
@zerkms I appreciate your opinion, but this is open source project and there is many ways people use this software. We are putting efforts to make it as flexible as possible with performance in mind of course. I still think that number of services is not a bottleneck. |
Fixes #59.