db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian McCallister <mccallis...@forthillcompany.com>
Subject Re: PersistentField implementations, dramatic performance differences
Date Fri, 25 Jun 2004 21:02:58 GMT
AutoProxyImpl performance will probably be terrible =) It switches on 
an exception because of reflection's behavior =(

Once it does so it *should* remember how to access the same field again 
though.

-Brian

On Jun 25, 2004, at 9:00 AM, Thomas Dudziak wrote:

> Armin Waibel wrote:
>
>> Hi all,
>>
>> yesterday I add nested fields support for 
>> PersistentFieldIntrospectorImpl (needs still some more tweaking I 
>> guess).
>> So I start writing a performance test for the PersistentField 
>> implementations to compare the average performance. I got really 
>> drastic results.
>>
>> The performance of non nested fields for 
>> PersistentFieldDirectAccessImpl is excellent, but the nested field 
>> performance is horrible - nested field performance is more than 240 
>> times slower than "normal" fields.
>>
>> After this I rewrite the PersistenceField implementation using direct 
>> field access (call PersistentFieldDirectAccessImpl_2). This class has 
>> the same performance for non-nested fields as the old version, but 
>> the nested field performance is only 3,7 time slower (or 66 times 
>> faster than the old one).
>> Additionally I rewrite the PersistentFieldIntrospectorImpl class and 
>> it now has a very good performance too.
>> All my results see below.
>>
>> All tests (for PFIntrospectorImpl some tests fail because the 
>> persistent classes are not conform to javabeans syntax) pass with the 
>> new implementations. But the implementations are not tested in real 
>> production environments.
>> Should I check in this stuff, not check in, check in under new class 
>> names?
>
> IMO you should check it in but perhaps only after the 1.0 (for 1.0.1) ?
> Btw, could you also check the performance of the AutoProxy impl ?
>
> Tom
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message