users@jersey.java.net

Re: [Jersey] Client.create() is expensive,

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 05 Dec 2008 10:35:49 +0100

On Dec 4, 2008, at 7:54 PM, Gili wrote:

>
> The new Javadoc reads "The creation of a <code>Client</code>
> instance is
> expensive operation". I would suggest inserting "an" before the word
> expensive. The result reads "The creation of a <code>Client</code>
> instance
> is an expensive operation"
>

Thanks, i write JavaDoc like i write email :-) i suspect there are
spelling and grammatical errors in many places. Anyone know of a spell
checker for JavaDoc with NetBeans ?

Paul.

> Gili
>
>
> Paul Sandoz wrote:
>>
>>
>> On Dec 1, 2008, at 10:58 AM, Gili wrote:
>>
>>> Paul Sandoz (via Nabble) wrote:
>>>>> To put things in perspective, my application was spending 10x
>>> more time in
>>>>> Client.create() than retrieving data from the server. It was that
>>> bad :) I
>>>>> was creating one instance per resource instance.
>>>>
>>>> Having a clone operation might be useful. Also if using the Client
>>> on
>>>> the server side then it should be possible to share some state.
>>>
>>> For my purposes it wouldn't help much. I only use Client on
>>> the client
>>> end and there I create a single instance and share it across the
>>> entire
>>> application. clone() wouldn't help because I'd rather just reuse the
>>> original instance... I am assuming it is thread-safe...? If not, I
>>> am in
>>> deep doo doo ;)
>>>
>>
>> Tis ok it is safe.
>>
>> Paul.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>>
>>
>
> --
> View this message in context: http://n2.nabble.com/Client.create%28%29-is-expensive-tp1597931p1614816.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>