Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Yelena Bunina
Hi all! Thanks a lot for your essential advices! I'll take it in mind. Won't be hacking current symfony 1 :) On Thu, Feb 10, 2011 at 12:47 AM, Gareth McCumskey wrote: > After all this what have we come back to. For now, temporarily, get some > more hardware. What will this do for you? Buy you

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Gareth McCumskey
After all this what have we come back to. For now, temporarily, get some more hardware. What will this do for you? Buy you some time so that you can go through your application logic and try to optimise. If routing was 30% of the performance bottle-neck then go look at that other 70% even. You

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Gabriel Petchesi
There was a project which attempted to replace symfony routing by mod_rewrite rules, have a look here: http://trac.symfony-project.org/browser/plugins/swOptimizeRoutesPlugin/trunk/README gabriel On Wednesday

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Alex Pilon
Symfony 2 was rebuilt from. It is not architected the same way as symfony 1 at all. If you are going to put in the effort to hack symfony 2 components into symfony 1 you might as well just rebuild the application in symfony 2. Now if you are going to say that symfony 2 is not ready for production a

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Yelena Bunina
Hi all! Thanx a lot for your attention. You are right - In our project we use nginx and its cache. Also we use mysql cache queries and put mysql full into the memory, we use APC to cache php code, we don't use Doctrine when there is no much business logic (in tasks) to make performance better. A

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Gareth McCumskey
Well heelll.. I been saying that all day. Maybe not as clearly but that is in essence what I have been trying to point out. Developer time by the hour, especially since you don't really have any idea how long that integration could take, it could be a couple hours or a couple weeks, vs ANY

[symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Matt Robinson
On Feb 9, 9:01 am, soulfly wrote: > I just try to know if it possible to take one component - Routing and > use it in project on sf 1.4. May be it's enough to take folder with > routes and pu it in folder in symfony 1.4. But may be I should write > smth in factories or elsewhere. I'm sure it's te

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Johannes Schmitt
Note that there is no such concept like Object, or ObjectCollection routes in Symfony2. So, the routing systems are not functionally equivalent. Kind regards, Johannes On Wed, Feb 9, 2011 at 12:56 PM, Yelena Bunina wrote: > Oh I forgot to tell that we use APC :) > > > On Wed, Feb 9, 2011 at 2:

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Yelena Bunina
Oh I forgot to tell that we use APC :) On Wed, Feb 9, 2011 at 2:51 PM, Gareth McCumskey wrote: > My point is not there aren't performance improvements if you were able to > switch to symfony 2 routing. My point is that the risk vs rewards is not > worth it as long as other options exist with a b

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Gareth McCumskey
My point is not there aren't performance improvements if you were able to switch to symfony 2 routing. My point is that the risk vs rewards is not worth it as long as other options exist with a better risk vs reward. Hacking symfony 1 to use symfony 2 routing might never work well after hours of at

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Yelena Bunina
Whats new in routing: - Moved to components - Increased performance. Don't create rout object at any routing rule - When compare rout and url using strpos() except pre_match - To generate url and routes uses different objetcs (ProjectUrlGenerator, ProjectUrlMatcher) I think it is great to improv

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Gareth McCumskey
I'm not trying to argue :) Only trying to help as the first thing that comes to my mind is that trying to shoehorn symfony2 stuff into symfony1, especially when you do not really know for sure if the symfony2 stuff will actually improve performance, seems to be a little rushed. Other things to con

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Yelena Bunina
We have performance issues, so we take xhprof to find the problem. Another big part in execution take Doctrine stuff calls. And in some places we have to refuse from Doctrine using plain sql (e.g. tasks). So I need an answer at my distinct question: how to built in symfiny's 2 route into symfony 1.

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Gareth McCumskey
Do you currently have performance related issues with your application? If you do not actually have performance issues then I would say not to worry about. If the application is performing efficiently, 30% of an efficient app is still efficient. If your application is struggling performance-wise th

[symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread soulfly
We tested our project with xhprof and realized that routes take 30% of script executing. And we expect that routes in symfony 2.0 have better performance (even take in consideration that it in beta version now). So we have to optimize code or use better solution. On Feb 9, 1:35 pm, Gareth McCumske

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Gareth McCumskey
But ... symfony 1.4 has routing capabilities already built in. On Wed, Feb 9, 2011 at 11:01 AM, soulfly wrote: > I just try to know if it possible to take one component - Routing and > use it in project on sf 1.4. May be it's enough to take folder with > routes and pu it in folder in symfony 1.4

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Bernhard Schussek
Not that I know, sorry. Maybe if you search on Google. Bernhard -- Software Architect & Engineer Blog: http://webmozarts.com Twitter: http://twitter.com/webmozart -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this mess

[symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread soulfly
How? Is there any instructions? On Feb 9, 12:15 pm, Bernhard Schussek wrote: > Hi Soulfly, > > Yes, that should be possible if you use PHP 5.3. > > Bernhard > -- > Software Architect & Engineer > Blog:http://webmozarts.com > Twitter:http://twitter.com/webmozart -- If you want to report a vulner

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Bernhard Schussek
Hi Soulfly, Yes, that should be possible if you use PHP 5.3. Bernhard -- Software Architect & Engineer Blog: http://webmozarts.com Twitter: http://twitter.com/webmozart -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received th

[symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread soulfly
I just try to know if it possible to take one component - Routing and use it in project on sf 1.4. May be it's enough to take folder with routes and pu it in folder in symfony 1.4. But may be I should write smth in factories or elsewhere. On Feb 9, 11:51 am, Gareth McCumskey wrote: > I never sai

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Gareth McCumskey
I never said 1.4 couldn't work on php 5.3. To help with your problem, it would probably be easier to port the symfony 1.4 ode to a symfony 2 application than symfony 2 to 1.4. On Wed, Feb 9, 2011 at 10:27 AM, soulfly wrote: > We use php 5.3 with symfony 1.4 - working good. > > On Feb 9, 11:14 am

[symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread soulfly
We use php 5.3 with symfony 1.4 - working good. On Feb 9, 11:14 am, Gareth McCumskey wrote: > I am not entirely sure but from what I have seen of symfony 2 it would not > be possible. Firstly because symfony 2 requires php 5.3 as its minimum php > version and symfony 1.4 requires php 5.2. In addi