abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: Performance improvements: MimeType
Date Wed, 07 Nov 2007 17:11:08 GMT
In continued testing, the JAF impl outperforms my version in long run
tests (average runtime of 100000 repeated operations).  I'm going to
leave things as they are for now and focus on other areas, but I'm going
to return to this and see what else I can optimize.

- James

Dan Diephouse wrote:
> Argh, I'm not having very good luck today as I think I misquoted you.
> You said "Currently, when first used, that class takes anywhere between
> 90-300 ms to init." Why does the first init even matter? It should be
> the init after the JVM has warmed up that we care about.
> 
> It might be worth getting an open source YourKit license and doing some
> profiling of the server under load with that.
> 
> - Dan
> 
> Dan Diephouse wrote:
>> Rereading my message, I think I might of said one thing but meant
>> another. What I really meant was, MimeType isn't one of those classes
>> that is used across java projects. So using the JAF MimeType doesn't
>> really buy us much and I don't see any issue with replacing it.
>>
>> BTW, 20-30 ms seems like an awfully long time... Are you running
>> -server -XX:ParallelGC, letting the server warm up, etc?
>>
>> - Dan
>>
>> James M Snell wrote:
>>> Considering the fact that we'd still have the dependency on JAF because
>>> of Axiom, there likely isn't a huge difference.  I'll hold on to the new
>>> impl class as an option (only took about 30 minutes to implement and
>>> test) and I'll be continuing my sweep through the rest of the code to
>>> find other bottle necks.
>>>
>>> - James
>>>
>>> Dan Diephouse wrote:
>>>  
>>>> [snip]
>>>> Seeing that MimeType isn't one of those classes that is really widely
>>>> used I don't think it matters too much.
>>>>
>>>> Other ugly options: fix the MimeType in geronimo and have people use
>>>> that jar. Or, extend MimeType and override all the methods. :-)
>>>>
>>>> - Dan
>>>>
>>>>     
>>
>>
> 
> 

Mime
View raw message