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

nsqd:Why do we pre-allocate such a large slice space to just a topic? #1496

Closed
fengjun2016 opened this issue Aug 14, 2024 · 1 comment
Closed
Labels

Comments

@fengjun2016
Copy link

When I read this code, I found that a large slice is pre-allocated for the statistics of a topic, but I didn't really understand the intention of doing this. Please take a moment to answer, thank you.

截屏2024-08-14 22 58 38

@mreiferson
Copy link
Member

As identified in #1492, this looks like a bug!

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

2 participants