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

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.6
    • Component/s: ruby
    • Labels:
      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. AVRO-1063-build.patch
          3 kB
          Doug Cutting
        3. gemfile.patch
          0.2 kB
          Doug Cutting

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: