Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3998

Switch Perl library from JSON::XS to JSON::MaybeXS

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.12.0
    • perl

    Description

      The Perl library currently depends directly on JSON::XS, which forces a decision of the JSON backend on the user. Perl currently has a number of compatible backends, including JSON::PP, which is shipped with Perl itself.

      The JSON::MaybeXS library serves as a compatibility layer to allow users to select the JSON backend that matches their stack, rather than forcing them to install a specific one, while still benefiting from the performance boost of XS libraries if they are available.

      Note that AVRO-1514 already exists aiming to clean up some dependencies, including replacing JSON::XS with plain JSON, a different compatibility layer.

      While the other changes in AVRO-1514 I think are desirable, that ticket seems to have stalled, and JSON::MaybeXS seems like a better alternative since it also supports Cpanel::JSON::XS as an additional possible backend.

      Attachments

        Issue Links

          Activity

            People

              fokko Fokko Driesprong
              jjatria José Joaquín Atria
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m