You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Paul Dlug (Created) (JIRA)" <ji...@apache.org> on 2012/04/17 14:51:17 UTC

[jira] [Created] (AVRO-1063) Ruby client should use multi_json rather than being locked down to yajl

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

                 Key: AVRO-1063
                 URL: https://issues.apache.org/jira/browse/AVRO-1063
             Project: Avro
          Issue Type: Improvement
          Components: ruby
            Reporter: Paul Dlug
            Priority: Minor


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AVRO-1063) Ruby client should use multi_json rather than being locked down to yajl

Posted by "Paul Dlug (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-1063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13255516#comment-13255516 ] 

Paul Dlug commented on AVRO-1063:
---------------------------------

I implemented this and sent a pull request via Github: https://github.com/apache/avro/pull/8 All tests pass after swapping yajl for multi_json.
                
> Ruby client should use multi_json rather than being locked down to yajl
> -----------------------------------------------------------------------
>
>                 Key: AVRO-1063
>                 URL: https://issues.apache.org/jira/browse/AVRO-1063
>             Project: Avro
>          Issue Type: Improvement
>          Components: ruby
>            Reporter: Paul Dlug
>            Priority: Minor
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira