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 ;)
Gili
--
View this message in context: http://n2.nabble.com/Client.create%28%29-is-expensive-tp1597931p1598033.html
Sent from the Jersey mailing list archive at Nabble.com.