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

(stevvooe): It may be better to allocate these in fixed length #668

Open
piascikj opened this issue Nov 30, 2017 · 0 comments
Open

(stevvooe): It may be better to allocate these in fixed length #668

piascikj opened this issue Nov 30, 2017 · 0 comments
Labels

Comments

@piascikj
Copy link
Member

buckets to reduce fragmentation but its not clear that would help
with performance. An ilogb approach or similar would work well.

opened via imdone.io from a code comment on c2cb302d17 by Michael Crosby

TODO (stevvooe): It may be better to allocate these in fixed length id:667


// TODO(stevvooe): It may be better to allocate these in fixed length
// buckets to reduce fragmentation but its not clear that would help
// with performance. An ilogb approach or similar would work well.
bb := make([]byte, size)
b = &bb
} else {
*b = (*b)[:size]
}

@piascikj piascikj added the TODO label Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant