Skip to content

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