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

Buffer size absurdly large #23

Closed
NVentimiglia opened this issue Apr 10, 2016 · 1 comment
Closed

Buffer size absurdly large #23

NVentimiglia opened this issue Apr 10, 2016 · 1 comment

Comments

@NVentimiglia
Copy link

I was benchmarking this library when I noticed that the buffer length from GetBuffer was very large. E.G., a 2056 length string resulted in a buffer with a length of 131072. Moreover, my serialization of serval floats (length 146) also resulted in a buffer with a length of 131072.

I really would not like memory chunks of 130kb. That scares me.

I feel like I am missing a very basic implementation detail. Am I possibly doing it wrong or is this a bug ?

@wengys
Copy link

wengys commented Apr 10, 2016

@NVentimiglia, 131072 is the default block size. You can change blocksize when creating new RecyclableMemoryStreamManager instance.

You should take a look at the announcement blog post, and get the implementing detail you need.

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

No branches or pull requests

2 participants