[Opensource] Time to initialize dbobject
Michael Rimov
rimovm at centercomp.com
Thu Jun 6 10:54:52 PDT 2002
At 09:08 AM 6/6/2002 +0200, you wrote:
>The time a dbobject needs to initialize is 100 ms. That is far too long. Can
>anybody tell me how to make this faster?
Good question! First off, are you using the latest release? There's been
time improvements there. Secondly, have you done some profiling to show
where in the initialization it is taking the longest? After the first
initialization, it should be much faster since the object sub-system has
already been initialized.
Thirdly, DBObjects themselves are not truly threadsafe [Although the
function to get the value from the cache is, the rest of it isn't.] You
could remove the spurious synchronized keywords and see how that helps.
And finally, taking look at the code, my first guess where the time is
getting spent is in setDBName(). If you could confirm that this is truly
where the time-hog is occurring, I'll take a look at how we could speed it up.
Thanks in advance for your input!
-Mike
More information about the Opensource
mailing list