-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 09/23/2010 06:46 PM, Tatu Saloranta wrote:
> 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.
Yes, therefore I try to avoid that...
There isn't so much overhead anymore. I am using Jackson and handtuned
code (without any reflection). And when I am (de)serializing a lot of
objects, performance is a factor....
>
>> But I think a multithreaded solution might perform better...
>
> Multi-threaded in what way? If you can split up content, perhaps.
One parsing thread and another one that is waiting for the IO. Don't
know if that makes sense... ;-)
The idea is that the parsing thread (CPU related) should not have to
wait for IO operations....
Thanks,
Johannes
>
> -+ Tatu +-
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
- --
Johannes Schneider - blog.cedarsoft.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQEcBAEBAgAGBQJMm8B+AAoJEAytD9R7Qv6daQAH/jD5+63t6G7P5S4gM+7gdzLS
trsB8epdsG0RNYodsnaP1wLzw3Mwz8oaQRyGp+dE614YWMNh/WjIAJJzespR4bk0
pLb8HpfRcBBProqM8wxRblDAr7K7WSbZzMZnU9G4/iiMiYjGczjGQyRyJajYntUY
ml1dYpBlIpHzusClvO1yxe2V1UoqbI9z0/+Bjju7ZvghDk/QRo7xwtX1xBTDmkjA
32o2k4jWW9kB4EkJwerZk0oDL1UdKggVlUKJFNWBHAfVeWOMWTU+Yhf25BHlUtEE
wthXPSnEbNuQ3oRXNvruXzSgS8209u3Ua5K0/WvdYHaA9eu6EdmxBhFY+hALwQo=
=WjbM
-----END PGP SIGNATURE-----