Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVRO-3998: Switch Perl library from JSON::XS to JSON::MaybeXS #2952

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

jjatria
Copy link
Contributor

@jjatria jjatria commented Jun 11, 2024

What is the purpose of the change

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.

Ticket: https://issues.apache.org/jira/browse/AVRO-3998

Verifying this change

This change is already covered by existing tests

This change changes one dependency for a different one with the same interface that serves as an intermediate layer. Existing tests that exercise JSON encoding / decoding verify that this is the case.

In particular, these tests exercise the modified code:

  • t/01_schema.t
  • t/05_protocol.t

The only part of the code that changed that is not covered by tests is the avro-to-json utility under bin.

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

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.
@github-actions github-actions bot added the Perl label Jun 11, 2024
Copy link
Member

@martin-g martin-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create Jira issues for your PRs. They are used for the Changelog generation! Thank you!

@jjatria
Copy link
Contributor Author

jjatria commented Jun 12, 2024

@martin-g I've sent in an account request 🙇

@martin-g
Copy link
Member

Approved it!

@jjatria jjatria changed the title Switch Perl library from JSON::XS to JSON::MaybeXS AVRO-3998 - Switch Perl library from JSON::XS to JSON::MaybeXS Jun 12, 2024
@jjatria
Copy link
Contributor Author

jjatria commented Jun 12, 2024

@martin-g: There's a ticket now: https://issues.apache.org/jira/browse/AVRO-3998

@Fokko Fokko changed the title AVRO-3998 - Switch Perl library from JSON::XS to JSON::MaybeXS AVRO-3998: Switch Perl library from JSON::XS to JSON::MaybeXS Jun 12, 2024
@Fokko Fokko merged commit c1dc836 into apache:main Jun 12, 2024
6 checks passed
@jjatria jjatria deleted the perl-json-maybexs branch June 12, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants