Skip to content

Conversation

alinceDev
Copy link

Q A
Bug fix? no
New feature? no
Docs? no
Issues -
License MIT

This PR removes the component object dumping from the Symfony UX Twig Component profiler to address memory consumption issues.

IMHO, the component dump is not necessary in the profiler as it can be quite verbose and memory-intensive. When detailed component inspection is needed, it's preferable to dump the component manually in the specific context where debugging is required.

Copy link
Member

@Kocal Kocal left a comment

Choose a reason for hiding this comment

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

WDYT @kbond?

@smnandre
Copy link
Member

@alinceDev

So i checked on the project I work on and .... I'm not a big fan of this idea (but not against the idea of not storing the components ... but)

Multiple data are only visible here in the profiler... and basic scalar data is not something that would take that much memory (at all).

Could you maybe create a repository / share some code (or context) to understand what numver of components (or what amount of inner data) becomes a problem in dev for you ?

I'd rather we change profiling and remove an important feature of it only if we have a concrete example to base this choice on....

@smnandre smnandre added the Status: Waiting feedback Needs feedback from the author label Sep 20, 2025
@Kocal Kocal removed the Status: Reviewed Has been reviewed by a maintainer label Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants