Giter Club home page Giter Club logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024

Original comment by [email protected] on 12 May 2011 at 8:56

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from json-simple.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
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

from json-simple.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
Thank you for the suggestion, I will check it.

Original comment by [email protected] on 16 May 2011 at 2:52

from json-simple.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
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 [email protected] on 28 Jun 2011 at 5:46

Attachments:

from json-simple.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
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 [email protected] on 6 Jul 2011 at 6:01

from json-simple.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
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 [email protected] on 29 Dec 2011 at 12:46

from json-simple.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
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 [email protected] on 10 Aug 2013 at 4:38

  • Changed state: Fixed

from json-simple.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.