Skip to content

Replace cJSON by rapidjson #3844

Closed
Closed

Description

@danielmewes

https://github.com/miloyip/rapidjson is usually faster than cJSON.

I've already started a branch with a partial port in daniel_rapidjson.

Activity

  1. self-assigned this
    on Feb 26, 2015
  2. added this to the 2.1 milestone on Feb 26, 2015
  3. danielmewes commented on Apr 11, 2015

    @danielmewes
    MemberAuthor

    Implemented in branch daniel_rapidjson, in CR 2801 by @Tryneus.

  4. mlucy commented on Apr 11, 2015

    @mlucy
    Member

    @danielmewes -- it might be worth auditing the rapidjson code to see whether they parse and print doubles in a way that doesn't discard information. I don't think we have a test for that right now.

  5. danielmewes commented on Apr 11, 2015

    @danielmewes
    MemberAuthor

    @mlucy Good point. It does round differently from cJSON (this shows up in the geospatial tests). I haven't investigated that yet, but it might indeed discard some information on the way. I'll add a separate test and investigate.

  6. danielmewes commented on May 1, 2015

    @danielmewes
    MemberAuthor

    Merged into next 9504c0d .

    The output of JSON-related commands such as coerce_to('string') and to_json_string() as well as some error messages that include user data will change slightly in format due to this.

    Old secondary indexes keep using cJSON for these operations for the time being to maintain compatibility.

  7. modified the milestones: 2.2, 2.1 on May 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions