Skip to content

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Sep 25, 2024

Trying a few things

true,
);

unset($this->resolvedPhpDocBlockCache[array_key_first($this->resolvedPhpDocBlockCache)]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As arrays are ordered, removing the first key is quite CPU expensive. The array should be probably reduced by 10-50% at once.

Also I am not exactly sure how only 2048 temporary copied keys can cause dramatic memory peak increase.

@staabm staabm closed this Sep 25, 2024
@staabm staabm deleted the dev-1.12.4 branch September 25, 2024 13:44
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