-
Notifications
You must be signed in to change notification settings - Fork 326
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
Improve the device detector runtime by wiring the system cache if present #7179
Improve the device detector runtime by wiring the system cache if present #7179
Conversation
|
Should I bump the dependency or add a check for the |
Would just increase the version to |
The PHPStan issue seems to be related that Line 36 in 60155ff
|
4b17d5b
to
17a3bc6
Compare
Found the issue with phpstan (#7180) and will update the baselines on the target branches so you can ignore them currently. |
feel free to ping me when #7180 is merged up and I can rebase here |
Merged and also merged back to 2.6 |
17a3bc6
to
145af4b
Compare
@alexander-schranz Thank you! 👍 |
@xabbuh Thank you for this improvement 👍 |
…sent (sulu#7179) improve the device detector runtime by wiring the system cache if present
What's in this PR?
Use Symfony's system cache pool when it is present to cache data read from YAML files by the device detector.
Why?
The
DeviceDetector
class scans several YAML files which never change during runtime. This consumes most of the CPU time when e.g./_sulu_target_group
is requested. Caching the parsed result improves this a lot.