Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[FrameworkBundle] Increase RequestValueResolver and SessionValueResolver priority #54374

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

Closed
wants to merge 1 commit into from

Conversation

MatTheCat
Copy link
Contributor

@MatTheCat MatTheCat commented Mar 22, 2024

Q A
Branch? 7.1
Bug fix? no
New feature? no
Deprecations? no
Issues Fix #54337
License MIT

The RequestValueResolver and SessionValueResolver are simple and fast, so it may make sense to run them before the EntityValueResolver. That way arguments type-hinted with Request or Session won’t have to wait for entity managers to be initialized and looped over. The linked issue says it can take 40–50ms; I wasn’t able to reproduce such numbers locally but it still seems worth it.

@stof
Copy link
Member

stof commented Mar 22, 2024

I think SessionValueResolver should also have the same priority bump for the same reason then.

@MatTheCat MatTheCat changed the title [FrameworkBundle] Increase RequestValueResolver priority [FrameworkBundle] Increase RequestValueResolver and SessionValueResolver priority Mar 22, 2024
Copy link
Contributor

@94noni 94noni left a comment

Choose a reason for hiding this comment

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

Perhaps a changelog line somewhere could be valuable even if its « internal » related wdyt?

@MatTheCat
Copy link
Contributor Author

@94noni #48032 didn’t add a changelog, so neither did I. Can still add it though 👀

@MatTheCat MatTheCat closed this Apr 13, 2024
@MatTheCat MatTheCat deleted the ticket_54337 branch May 10, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request controller argument is first resolved as Doctrine entity, causing 40-50ms performance loss
4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.