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

Fix struct field alignment for improved memory usage #345

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pixel365
Copy link
Contributor

@pixel365 pixel365 commented Feb 5, 2025

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Feature

This change optimizes the memory layout of structs by fixing field alignment. It reduces unnecessary padding and improves memory efficiency, resulting in smaller struct sizes and potentially better performance.

Description of Changes:

fieldalignment -fix ./...

  • Automatically fixed field alignment across the project.
  • Reduced memory footprint by optimizing struct layouts.
  • Applied changes to improve overall performance and efficiency.

Checklist

  • My code follows the Contribution Guide
  • I have self-reviewed the changes being requested
  • I have made comments on pieces of code that may be difficult to understand for other editors
  • I have updated the documentation (if applicable)

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