I profiled my code and was surprised to discover how expensive
Client.create() calls are. I would suggest you document in the Javadoc that
creating a Client is expensive and should only be done once per
configuration type across the entire lifetime of the application.
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.
Gili
--
View this message in context: http://n2.nabble.com/Client.create%28%29-is-expensive-tp1597931p1597931.html
Sent from the Jersey mailing list archive at Nabble.com.