Ok, this is probably due to class loading indeed. This half-second is a little bit annoying in my case, but I will try to ensure that required Jena classes are loaded prior to creating the model, at a time when this short delay is not an issue.
Thanks for your advice. Damien 2010/12/22 Chris Dollin <[email protected]> > On Wednesday, December 22, 2010 09:47:43 am Damien Cram wrote: > > > I can't figure out why the creation of a model (Model model = > > ModelFactory.createDefaultModel()) takes some time (around half a second) > > when it is executed for the first time. From the second time on, it is > > almost instantaneous, as expected. > > I expect its loading the classes required. > > > Is there any way to create an empty model faster ? > > You'll have to pay the class-loading price at /some/ time. > > Maybe caching the classes on a RAM disc? > > Is that half-second a real problem? > > Chris > > -- > "The process will be long and ... unreliable." Box, /Star > Cops/ > > Epimorphics Ltd, http://www.epimorphics.com > Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 > 6PT > Epimorphics Ltd. is a limited company registered in England (number > 7016688) > -- *Damien Cram* 27, rue Saint-Jean - 69005 Lyon Tél. 06 72 64 07 30
