users@jersey.java.net

Re: [Jersey] Client: Performance: InputStream fastest possibility?

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Thu, 23 Sep 2010 09:46:11 -0700

On Thu, Sep 23, 2010 at 1:47 AM, Johannes Schneider
<mailings_at_cedarsoft.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
...
> I tried to use a String instead of an InputStream. But in my tests there
> haven't been any difference...

Using String should be slower, there is no point in converting xml or
json into strings... not that it necessarily matters a lot, so much
overhead in other parts of processing. But I guess it is worth trying
out alternatives to see the underlying issue could be idenfitied.

> But I think a multithreaded solution might perform better...

Multi-threaded in what way? If you can split up content, perhaps.

-+ Tatu +-