Skip to content

Compiler flags to disable features and shrink code size #1868

Description

@andrewwade

It would be nice to have compiler flags to disable certain features. For example, I don't need parsing to write json logs. I'm only constructing the json and dumping it to strings but I like the convenience of how json objects are constructed in this library. I commented out the parsing stuff and reduced the code size by 60% so now I can put it on more embedded environments.

Possible features to turn off:

  1. Parsing
  2. SAX support
  3. bson support
  4. ubjson support
  5. cbor support
  6. msgpack support

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: enhancement/improvementstate: stalethe issue has not been updated in a while and will be closed automatically soon unless it is updated

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions