https://issues.apache.org/bugzilla/show_bug.cgi?id=43925

--- Comment #14 from Brian Remmington 
<brian.remming...@celestialservices.co.uk> ---
I've just run the tests I provided again against Tomcat 8, ramping up the
iterations in the BodyContentTest steadily to 1500000 (hardware is *so* much
better now...).

My version is consistently 40% faster than the current version, however both
are pretty quick these days. My machine can chew through 1000000 iterations in
1378ms with the current version (BodyContentImpl) and 824ms with my version
(NewBodyContentImpl).

Speed isn't the main point of this, however. It's the very wasteful use of
memory that was causing the real problem when I initially raised this issue.
The garbage collector was kicking in constantly, completely draining CPU
cycles.

For example, take the iterations up to 1500000 on my test machine, and the
current version blows up with an OutOfMemory error. My version continues to
work and scales fairly linearly (1341ms). Take it up further to 2000000
iterations, and mine starts to plateau (2393ms), but it still continues to
work. At 3000000 iterations, my version completes in 4543ms.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to