From: Tony B. <to...@to...> - 2003-03-27 13:47:28
|
I was referring to the Mappings and Forwards classes. They were collections of mappings and forwards respectively. Loading them all into memory is a waste. Only load what you want when you need it. Just my two cents. --Tony On Wed, 26 Mar 2003, Jason Sweat wrote: > --- Tony Bibbs <to...@to...> wrote: > > Again, a problem I had with Phrame is all mappings and forwards were > > loaded even though a very small subset was needed to process the current > > request. > > I am not sure how much overhead loading an array really constitutes. As an > alternative, these could simply be hard coded into the action. > > Instead of implementing: > $actionForward = $actionMapping->get('index'); > return $actionForward; > > You could instead do: > $actionForward = new ActionForward('foo', APPL_URL.'?view=suchandsuch'); > return $actionForward; > > This essentially hardcodes the values into the actions and eliminates some of > the "loose coupling" benefits of Struts, but I do not think too much is lost > since you are coding for one or more of the forwards anyway. > > Another $0.02 :) > > Jason > > __________________________________________________ > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! > http://platinum.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > Phrame-devel mailing list > Phr...@li... > https://lists.sourceforge.net/lists/listinfo/phrame-devel > -- Tony Bibbs "I guess you have to remember that those who don't to...@to... hunt or fish often see those of us who do as harmlessly strange and sort of amusing. When you think about it, that might be a fair assessment." --Unknown |