jena-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Seaborne <andy.seabo...@epimorphics.com>
Subject Re: A time delay in ModelFactory.createDefaultModel() ?
Date Wed, 22 Dec 2010 11:28:53 GMT
The costs will usually be on a call to ModelFactory.createDefaultModel() 
because that's the first point the application calls into Jena code. 
Until then it's "just" declarations.

	Andy

On 22/12/10 11:21, Damien Cram wrote:
> 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)
>>
>
>
>

Mime
View raw message