Closed GoogleCodeExporter closed 9 years ago
Original comment by fangyid...@gmail.com
on 12 May 2011 at 8:56
May I suggest you to try
http://code.google.com/p/json-smart
this fork is a json-simple with better performances.
Original comment by uriel.chemouni
on 16 May 2011 at 11:35
Thank you for the suggestion, I will check it.
Original comment by giancarl...@gmail.com
on 16 May 2011 at 2:52
I think the attached patch fixes this issue, though using a slightly different
approach. The main idea is the same -- serialize nested maps to a single buffer
instead of making repeated copies.
Original comment by michael....@gmail.com
on 28 Jun 2011 at 5:46
Attachments:
I'd argue that json-simple shouldn't list "High performance" as one of its
features while this issue is not resolved--or at least it should clarify that
"high performance" only applies to parsing, not serialization. This issue makes
serialization an O(n^2) when it should be O(n).
Original comment by michael....@gmail.com
on 6 Jul 2011 at 6:01
There's no need to use StringBuffer (which is synchronized) because the
corresponding variable is not used by multiple threads. Use StringBuilder
instead - it's much faster.
Original comment by g.byczyn...@gmail.com
on 29 Dec 2011 at 12:46
This is done in r216.
@g.byczynski Sadly, we can't use StringBuilders as long as we're trying to
maintain JDK 1.2 compatibility.
Original comment by jon.cham...@gmail.com
on 10 Aug 2013 at 4:38
Original issue reported on code.google.com by
giancarl...@gmail.com
on 11 May 2011 at 10:37