At this point I don't want this going into the 3.0.5 release. You can put it in after the release and include it in 3.2.0RC1 to get feedback.
xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ----- Original Message ----- From: "Sacha Labourey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Scott M Stark" <[EMAIL PROTECTED]> Sent: Saturday, January 11, 2003 8:42 AM Subject: RE: [JBoss-dev] Re: Optimisation for proxy creation? > OK, I did some testing: from a client (not in-VM) on the same host, calling > 100x findAll which returns 1000 EB from an In-Memory BMP. > > I implemented different solutions: > 1) I preload the chain and reuse it > 2) I preload the chain and if one of the interceptors is marked as > "stateless="false"" I dynamically add a new interceptor in front of the > chain that contains a copy of the chain (in a MO) > 3) I preload the whole chain and store it in a MO and I have a new > ClientContainer implementation that do not take an Interceptor as parameter > but an MO that contains the chain > > Time on my machines were something like: > - default (no optimisation): 11 seconds > - opt 1): 8 second > - opt 2): 7-8 second > - opt 3): 22 seconds!!! I don't understand why!!! > > For opt 3, may the problem is related to the fact that in the marshalled > collection that is returned from findAll, all proxies do share the same > chain, which is very good (bandwith!) for case 1 and 2 but maybe in case 3, > as the content is inside a MO, each proxy will get its own byte[]. Don't > know, just a quick 10'000 feet analysis. > > Implementation 2 is cool because it can work easily locally and remotly for > stateless and stateful chains. I am pretty sure the number would be better > if the client and server would be running on different hosts (because in my > case, the total amount of client+server serialization was all on the same > machine while with the optimisations, the server work is quite reduced). > > So, is 4 seconds out of 11 (35%) a sufficient improvment so that I commit > the new files? > > Modifications are: > - ProxyFactory updated > - MarshallerInterceptor added > > N.B.: the "tests-unit" testsuite module target runs correctly with these > modifications ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
