| Just to clarifty, What I meant when I was talking to Peter was, I was doing some basic metrics on getBean for various different bean definitions. Beans with deaply nested dependencies in their constructor args were up to 5 times slower than simple beans with very few dependencies, those that were slower had many relationships to traverse. Of course, that pretty much means that ColdSpring is doing a lot more property / constructor arg resolving, and thus a lot more work. I did not yet compare constructor vs setter injection for complex object relationships. Now, for simple object relationships that were easy to test against CreateObject calls and manually creating dependencies, I was actually quiet surprised how little overhead was being incurred. But I am yet to set up really complex CreateObject calls to test the slower get bean calls against. Chris On Jun 12, 2007, at 3:18 PM, Brian Kotek wrote: OK, point conceded. I know that on a very large set of CFCs in development this can take some time, especially like something such as Mach-II or Model-Glue that will force all the beans being injected into the listeners to be created every time (no lazy loading there). I also agree that explicitly defining the properties for each bean is better in terms of documentation. But with regard to autowiring, I suppose I'd say the performance hit in development is limited to a fairly specific situation, i.e. you have a large number of CFCs and also use a framework that forces them all to be created on every request. As Peter says (and it's always good advice), do what works for you. |
- [coldspring-dev] Config/Inheritance Question Anthony Israel-Davis
- [coldspring-dev] Config/Inheritance Question Doug Boude
- [coldspring-dev] Config/Inheritance Question Anthony Israel-Davis
- [coldspring-dev] Config/Inheritance Question Brian Kotek
- [coldspring-dev] Config/Inheritance Question Tom Chiverton
- [coldspring-dev] Config/Inheritance Question Brian Kotek
- [coldspring-dev] Config/Inheritance Question Anthony Israel-Davis
- [coldspring-dev] Config/Inheritance Question Anthony Israel-Davis
- [coldspring-dev] Config/Inheritance Question Peter J. Farrell
- [coldspring-dev] Config/Inheritance Question Brian Kotek
- [coldspring-dev] Config/Inheritance Question Chris Scott

