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

Ruby client should use multi_json rather than being locked down to yajl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.6
    • ruby
    • None

    Description

      The avro ruby client uses yajl for JSON serialization which is just one of many suitable JSON implementations for ruby. The multi_json gem provides a wrapper for JSON serialization selecting the fastest library available (Oj is now even faster than Yajl) and falling back to a pure ruby implementation bundled with multi_json. Requiring yajl also precludes the ruby gem from being used under jruby since it requires a C extension.

      Attachments

        1. AVRO-1063.diff
          5 kB
          Duke
        2. gemfile.patch
          0.2 kB
          Doug Cutting
        3. AVRO-1063-build.patch
          3 kB
          Doug Cutting

        Issue Links

          Activity

            People

              dukex Duke
              pdlug Paul Dlug
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: