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"
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.