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

Reduce Memory Usage by Optimizing Order of Fields #29

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

Conversation

gaby
Copy link

@gaby gaby commented Jul 20, 2024

Results:

ubuntu@ubuntu:~/Desktop/git/bytebufferpool$ betteralign -test_files -generated_files -apply ./...
/home/ubuntu/Desktop/git/bytebufferpool/pool.go:25:11: 184 bytes saved: struct with 224 pointer bytes could be 40

@erikdubbelboer @valyala I'm not sure who is the maintainer of this repo.

@gaby gaby changed the title Optimize struct field order to reduce memory usage by 184 bytes Reduce Memory Usage by Optimizing Order of Fields Jul 21, 2024
@erikdubbelboer
Copy link

I'm afraid I'm not a maintainer, and can't merge this.

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