|
From: | David Daney |
Subject: | Re: [cp-patches] Patch: use StringBuilder for reading/writing property files |
Date: | Wed, 19 Oct 2005 12:49:16 -0700 |
User-agent: | Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) |
Anthony Green wrote:
Synchronization often shows up near the very top of gcj-compiled benchmarks. It turns out that, for benchmarks I've run, ~50% of the synchronization calls come from reading property files with StringBuffer. This should all go away if we use StringBuilder instead.
Have you actually profiled it with and without the change? Not that this should be requisite for the patch, but it would be interesting to know.
Also since StringBuilder requires making a copy of the underlying char[] when converting to String, I would be interested to know how much extra time is consumed in allocations and coping of the buffer.
You also might want to look at comment #1 of: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21869 David Daney.
[Prev in Thread] | Current Thread | [Next in Thread] |