I have some changes in SVN that will attempt to pre-fill metadata
caches when running under mod_perl.  In my brief testing it only shows
a small difference in shared memory (~100KB) when loading four
RDBO-derived classes and doing something trivial with them.

It works by calling prime_caches() during the call to initialize()
when $ENV{'MOD_PERL'} is true.  If you're using the Loader to create
classes, you may need to call:

    Rose::DB::Object::Metadata->prime_all_caches();

in your startup.pl, since the Loader tends to invalidate metadata
caches as new links between classes are discovered during loading.

If someone with a more complex setup and a means to measure shared
memory would like to compare the SVN version with the current release,
I'd appreciate it.  Failing that, I will probably just release these
changes as-is, since they seem to help a little.

-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

Reply via email to