Skip to content

[TwigComponent] Fix full context is stored in profiler #1552

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

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

smnandre
Copy link
Member

Q A
Bug fix? yes
New feature? no
Issues Fix #1540
License MIT

As $event->getVariables() get the full context for non-embed components, this led to huge data stored for every component called during the request. (see #1540)

As this is internal data, and the "variables" was not used in the profiler, I believe we should consider this a bug and simply remove it.

As $event->getVariables() get the full context for non-embed components, this led to huge data stored
for every component called during the request.

As this is internal data, and the "variables" was not used in the profiler, I believe we should consider this a bug
and simply remove it.
@carsonbot carsonbot added the Status: Needs Review Needs to be reviewed label Feb 27, 2024
@weaverryan
Copy link
Member

Thanks Simon!

@weaverryan weaverryan merged commit b72aeaa into symfony:2.x Feb 29, 2024
@alinceDev
Copy link

Thanks Simon !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Review Needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TwigComponent] Profiler, memory consumption
4 participants