Skip to content
Compare
Choose a tag to compare
@MikhailSterkhov MikhailSterkhov released this 26 Sep 06:16

RELEASE ABOUT

This release has created a core codebase that will grow over time.
It already contains everything necessary for the stable and productive performance of the library


HOW TO USE?

First, let's define what kind of parser we need.

There are only two types of parsing in this library:

  • Common
NodesonParser common = Nodeson.common();
  • Parallel (Multi-Threaded)
NodesonParser parallel = Nodeson.parallel();

Then we can already reproduce the necessary parsing algorithms.

Let's try to parse an object to JSON and back, measuring the speed:

Common: (189ms)

String json = common.parseTo(testObject); // 178ms
        
TestObject converted = common.parseFrom(json, TestObject.class); // 11ms

Parallel: (109ms)

String json = parallel.parseTo(testObject); // 101ms
        
TestObject converted = parallel.parseFrom(json, TestObject.class); // 7ms