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

Question on 4096 #53

Open
kolinfluence opened this issue Apr 22, 2024 · 1 comment
Open

Question on 4096 #53

kolinfluence opened this issue Apr 22, 2024 · 1 comment

Comments

@kolinfluence
Copy link

kolinfluence commented Apr 22, 2024

i have read the https://github.com/cloudwego/shmipc-spec but there are too many things to consider
so question is,

  1. for the idl section,
var BufferPool = sync.Pool{New: func() interface{} {
	return make([]byte, 4096)
}}

if the message i sent is 256bytes, the message received back is 1 byte, what is the ideal make byte number i should put?
4096 is "too much"? should i do 256 bytes + message passing overhead?

  1. what is the min overhead of this []byte for message passing? i would like to make each transfer use one bytebufferpool efficiently.
@kolinfluence
Copy link
Author

@zhquzzuli @goodbye-babyer any help on this one? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant