jena-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damien Cram <damien.c...@gmail.com>
Subject Re: A time delay in ModelFactory.createDefaultModel() ?
Date Wed, 22 Dec 2010 11:21:19 GMT
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 <chris.dollin@epimorphics.com>

> 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message