On 8/12/06 3:03 PM, Jonathan Vanasco wrote: > I should add- the most memory I've gotten to stay shared is with the > following in startup.pl > > [snip huge list of use statements]
My first impression is that that list is probably too long. Remember that modules use other modules. If A uses B, you just have to use A to get both of them. There are many modules that are loaded "on demand" (e.g., column type classes). But if you load all your own Rose::DB::*-derived modules in startup.pl, that should cause all of the required classes to be loaded as each of your classes adds columns and so on. > c- this seems to save ~3mb of shared memory over just "use Rose::DB" You should really use your classes where possible. Since those classes "use base Rose::*", they will load the Rose::* modules they need. > creating a rose db object class and using it , adds about 9mb. > this adds about 12mb to apache (!). RDBO does "create once and then cache" a bunch of derived metadata. I plan to add some sort of "compile all" method or option to do all of this up-front rather than waiting for the first use. This should increase shared memory in a mod_perl environment. Do you have any preferences for an interface to such a thing? -John ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object