Skip to content

Conversation

@orgads
Copy link

@orgads orgads commented Feb 29, 2024

No description provided.

orgads added a commit to orgads/fluentd-docker-image that referenced this pull request Feb 29, 2024
Reduces the alpine image from 46M to 41M.

yajl parts can be removed if/when
brianmario/yajl-ruby#228 is merged and
released.
orgads added a commit to orgads/fluentd-docker-image that referenced this pull request Feb 29, 2024
Reduces the alpine image from 46M to 41M.

yajl parts can be removed if/when
brianmario/yajl-ruby#228 is merged and
released.

Signed-off-by: Orgad Shaneh <[email protected]>
@orgads
Copy link
Author

orgads commented Sep 5, 2024

@jhawthorn ping

orgads added a commit to orgads/fluentd-docker-image that referenced this pull request Sep 5, 2024
Reduces the alpine image from 46M to 41M.

yajl parts can be removed if/when
brianmario/yajl-ruby#228 is merged and
released.

Signed-off-by: Orgad Shaneh <[email protected]>
orgads added a commit to orgads/fluentd-docker-image that referenced this pull request Sep 5, 2024
Reduces the alpine image from 46M to 36M, and debian image
from 210M to 195M.

yajl parts can be removed if/when
brianmario/yajl-ruby#228 is merged and
released.

Signed-off-by: Orgad Shaneh <[email protected]>
@orgads
Copy link
Author

orgads commented Aug 13, 2025

ping

@jhawthorn
Copy link
Collaborator

At this point we should consider this a legacy gem, you could just use JSON and get better performance, so I'm reluctant to merge. This change has a danger of adding unwanted and uncommitted files. The gem also looks to be of a reasonable size.

@jhawthorn jhawthorn closed this Sep 8, 2025
orgads added a commit to orgads/fluentd that referenced this pull request Sep 10, 2025
yajl is much slower than json nowadays.

See 1d5b0de and maintainer comment in
brianmario/yajl-ruby#228.
orgads added a commit to orgads/fluentd that referenced this pull request Sep 10, 2025
yajl is much slower than json nowadays.

See 1d5b0de and maintainer comment in
brianmario/yajl-ruby#228.

Signed-off-by: Orgad Shaneh <[email protected]>
orgads added a commit to orgads/fluentd that referenced this pull request Sep 10, 2025
yajl is much slower than json nowadays.

See 1d5b0de and maintainer comment in
brianmario/yajl-ruby#228.

Signed-off-by: Orgad Shaneh <[email protected]>
@orgads
Copy link
Author

orgads commented Sep 11, 2025

What do you mean by "reasonable size"? The packed gem is 500K, and the extracted files are 4.2M. Stripping all but ext and lib leaves 540K, which is 87% less!

8.0K    ./script
12.0K   ./.github
12.0K   ./tasks
48.0K   ./examples
240.0K  ./ext
308.0K  ./lib
644.0K  ./benchmark
2.9M    ./spec

How about running git ls-files ext lib? Would you accept that?

Watson1978 pushed a commit to fluent/fluentd that referenced this pull request Sep 22, 2025
yajl is much slower than json nowadays.

See 1d5b0de and maintainer comment in
brianmario/yajl-ruby#228.

Signed-off-by: Orgad Shaneh <[email protected]>
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.

2 participants