From: Robert W. B. <rb...@di...> - 2001-09-10 15:42:04
|
On Mon, 10 Sep 2001, Sebastien Pierre wrote: > Hi all, > > I have in my classpath every possible jar on my system. The problem is > that at startup Jython looks in every jar without caching the > information somewhere. This leads to a +20s slowdown at each runtime... > > Is there a possiblility to disable this step and only give jars that are > needed, or maybe turn on a caching property that may be off? Is there an error message each time the cache is unable to write the package cache? Do permissions not allow you to write to the cachedir? Are you referring to PyServlet or some tool that uses sys.add_extdir? You can limit the jars in your classpath to limit the startup overhead. This is also good because extraneous jars seems to have a performance effect on Java loading anyway (or is it just me?). It would be better to get the cache to work property as it seems an important optimization. Make sure permissions allow writing the cachedir and maybe double check to see if the python.home property is correct. -rb |