Can you explain why you might be reaching into the application scope to find MG?
DW Sent from a mobile. Please excuse brevity and typos. -----Original Message----- From: Ryan Stille <[email protected]> Sender: [email protected] Date: Tue, 26 Apr 2011 11:46:11 To: model-glue<[email protected]> Reply-To: [email protected] Subject: [Model-Glue] Re: Upgrading model glue for performance - but it got a lot slower Thanks for that suggestion. I did try 3.2, and it is faster. When this is released I will switch to it. One thing I am running into on either 3.1 or 3.2, is that in several places on our site we reach into MG/CS and access a bean directly. We do this with code like: .... <cfset var someservice = application.myapp_glue.framework.getBeanFactory().getBean("SomeService") / > <cfreturn someService.someFunc() /> ... This code breaks in the newer versions of MG. I get this error: Element MYAPP_GLUE.FRAMEWORK is undefined in a Java object of type class [Ljava.lang.String; >From what I can tell, the "framework" part is no longer necessary? So I created a work around like this in my index.cfm file: <cfif IsDefined("application.myapp_glue")> <cfset application.myapp_glue.framework = application.myapp_glue /> </cfif> But it doesn't work perfectly, I get an error sometimes when I reinit. I think I could clean this up and work around that, but I wanted to see if there was a better way of doing this? A quick search shows I have 205 places using this. I could do a search & replace, but I rather not have to do that, for several reasons. Thanks. On Apr 6, 6:45 am, Jim Priest <[email protected]> wrote: > On Tue, Apr 5, 2011 at 11:14 PM, Ryan Stille <[email protected]> wrote: > > mind I'm not simply asking about why my MG app is slow, I'm trying to > > find out why its so much slower on the current version. Is this just > > how it is? Or are my results atypical? > > I'm using the "Memoized Alpha 3.2" version on my latest project with no > issues. > > If you turn off the reloading - it's VERY fast. There is a lot going on > under the hood with MG but with the latest alpha they've done a fantastic > job of speeding things up. > > Jim -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en
