-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
avoid allocating memory if all extension are cleared #9345
Conversation
avoid allocating memory if all extension are cleared
We should test that the capacity grows as expected with the new changes for |
use the 4x growth.
@liuzhijiang This change looks good to me but I think we just need a unit test as @sbenzaquen suggested to verify the new behavior. I think the test could just look at |
The function Reflection::GetExtensionSet() is private, so the object ExtensionSet cannot be obtained and the function ExtensionSet::SpaceUsedExcludingSelfLong() cannot be called. Is there any other way to call the function SpaceUsedExcludingSelfLong() ?
|
@liuzhijiang That kind of unit test looks good to me. I think you are right that the best way to do it is to rely on |
@liuzhijiang Thanks! |
avoid allocating memory if all extension are cleared