Skip to content

Replace Yajl with the json gem for record summarization - #57

Open
Watson1978 wants to merge 1 commit into
treasure-data:masterfrom
Watson1978:replace-yajl-with-json
Open

Watson1978 wants to merge 1 commit into
treasure-data:masterfrom
Watson1978:replace-yajl-with-json

Conversation

@Watson1978

Copy link
Copy Markdown

This commit replaces the yajl-ruby dependency with Ruby's standard json gem for the following reasons:

  1. Future Compatibility: yajl-ruby is no longer actively maintained and relies on internal C APIs that are removed in Ruby 4.1. Migrating to the standard json gem ensures the plugin can continue to be built and used in future Ruby environments. Ref. [Misc #21768] Remove deprecated APIs ruby/ruby#15447, Can we release a new version for recent Ruby? brianmario/yajl-ruby#233
  2. Performance: The standard json gem has seen significant improvements in recent updates and now outperforms yajl-ruby.

Fluentd replaced yajl-ruby at fluent/fluentd#5383

yajl-ruby cannot be built on Ruby HEAD because it relies on internal C
APIs that were removed. The json gem is a default gem, so it is always
available, and it is no longer slower than yajl-ruby.
@Watson1978

Copy link
Copy Markdown
Author

@kenhys Can you review this PR ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant