Skip to content

Conversation

@kolyshkin
Copy link
Contributor

@kolyshkin kolyshkin commented Mar 19, 2025

This makes the state.json file 1303 bytes or almost 25% smaller (when using the default spec, YMMV) by omitting default values.

Before: 5496 bytes
After: 4193 bytes

(With opencontainers/cgroups#9 applied on top, the new size is 3424, which is almost 40% savings, compared to the original).

This makes the state.json file 1303 bytes or almost 25% smaller (when
using the default spec, YMMV) by omitting default values.

Before: 5496 bytes
After: 4193 bytes

(With cgroups#9 applied, the new size is 3424, which is almost 40%
savings, compared to the original).

Signed-off-by: Kir Kolyshkin <[email protected]>
Copy link
Member

@rata rata left a comment

Choose a reason for hiding this comment

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

haha, awesome!

I thought I already reviewed this, but it seems I got interrupted by a meeting before posting. Thanks for the ping :)

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM 😄

@AkihiroSuda AkihiroSuda merged commit e0bf28b into opencontainers:main Mar 21, 2025
34 checks passed
@kolyshkin
Copy link
Contributor Author

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.

4 participants