users@jersey.java.net

Client: Performance: InputStream fastest possibility?

From: Johannes Schneider <mailings_at_cedarsoft.com>
Date: Sat, 18 Sep 2010 19:18:30 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi guys,

at the moment I try to optimize some code that fetches a large JSON
document. I am using the Client provided by Jersey.

At the moment I am calling
> resource.getEntity( InputStream.class )

My profiler shows me, that the Jackson parser has to wait for the stream
(in HttpInputStream#read) for a long time...

Is this the fastest possible way? Can this be optimized? Any hints
appreciated.


Thanks,

Johannes
- --
Johannes Schneider - blog.cedarsoft.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJMlPRkAAoJEAytD9R7Qv6dkTIH+wQrCuX1+fptRcVsXvhMrimx
zHx+XPRaja5WLX/XR9o3MbKzWeyB0dyD2fq1TddN7RDsqtfBoSwxWb61Iyrrqknu
hWA/dcmwuQlY7IYMjIDRnDPg2WdW8CJAPeGCy+fZad+sqyVIGmWmpwkCdbssF5hQ
4+xK5/TUrfx/+xUZ5Ro5752uHsDdcKYI34PF7LsK0Av91jc/4KkF1t630Q7Kd8GU
//Gsg9K6GXY9rZqtHpk4DDBtthZEaGDI2fU9SnRx9baDVvs8Dxu/iPhpnPO0Aboc
NJps6kmvKutmVSDqWbkJ/dE3F931Dzx3uazg1X12Ar7gQ+RKC4YfoNZ9j8AvF6I=
=N0Fa
-----END PGP SIGNATURE-----