Skip to content

Optimize map capacity allocation during shard initialization. #419#420

Merged
janisz merged 1 commit into
allegro:mainfrom
xiaobai12011:fix-map-capacity-allocation
Feb 5, 2026
Merged

Optimize map capacity allocation during shard initialization. #419#420
janisz merged 1 commit into
allegro:mainfrom
xiaobai12011:fix-map-capacity-allocation

Conversation

@xiaobai12011

Copy link
Copy Markdown
Contributor

If StatsEnabled is configured as false, No need to initialize the capacity for hashmapStats.
This is because the data is not used in subsequent processes, resulting in the allocation of invalid memory space.

@janisz

janisz commented Feb 5, 2026

Copy link
Copy Markdown
Collaborator

One test is failing

@xiaobai12011

Copy link
Copy Markdown
Contributor Author

One test is failing

I ran the TestCacheReset test locally and didn't encounter any failures. Could you please help me troubleshoot or rerun the test?

@janisz
janisz merged commit 353ff50 into allegro:main Feb 5, 2026
3 of 6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants