-
Notifications
You must be signed in to change notification settings - Fork 193
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
ReadStringBytes allocates #145
Comments
Unfortunately, this is a side-effect of the semantics of Things will go faster if you use Things get faster still if you use |
fair enough. just to make sure we're on the same page:
i would be ok with immutable strings if it improves performance. but this is probably not an option since go only supports immutable strings, right? thanks for your response, and feel free to close this if there's nothing else to do. |
Yes; go's Another alternative, if you're using a fixed set of strings, is to do string internment and transfer the data as some combination of integers and strings. |
i missed this point last time we spoke I think. is there any docs with more specifics and how to do this? couldn't find this in docs or on the wiki. thanks. |
Hello,
thank you very much for your work. it works very nicely.
one thing i noticed though,
in my app,
github.com/tinylib/msgp/msgp.ReadStringBytes
is the largest allocator of objects (note: by far not the largest cause of memory usage, so it's just that it allocates a lot, but often not much each time)is there anything that can be done? I'm using the
UnMarshal
methodthanks.
The text was updated successfully, but these errors were encountered: