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
CO: improvement : Performance String Modifier #34458
Conversation
Shoprunners
commented
Nov 3, 2023
•
edited by M0rgan01
edited by M0rgan01
Questions | Answers |
---|---|
Branch? | develop |
Description? | This improvements makes reuse of the StringModifier. Why is this an issue? I.e. if a product has many combinations, for each combination a new StringModifier with the whole tail will be created in the initContent method of the frontend ProductController, which costs a good time. There is no need for it and we can just reuse it. |
Type? | improvement |
Category? | CO |
BC breaks? | no |
Deprecations? | no |
How to test? | Profile a product with 2000 combinations and look at the initContent time. |
UI Tests | https://github.com/M0rgan01/ga.tests.ui.pr/actions/runs/6747522063 |
Fixed issue or discussion? | Fixes #34453 |
Sponsor company | Shoprunners |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement
@Shoprunners Nice work, only one fix is missing on CS Fixer, and it is approved |
Thanks, |
We could cherry-pick for the 8.1.x or change the branch. what do you think @Shoprunners ? |
Sure, I don't see any reason why not. But I am not good in rebasing etc. |
The base branch was changed.
@Shoprunners I can do it if you want, but I need publishing rights to your fork Otherwise, create a new branch (patch-16v2) starting from 8.1.x, cherry-pick the commits from the patch-16 branch and force-push targeting the patch-16 branch. It would then be necessary to change the destination branch of the PR to 8.1.x |
@Shoprunners up !! You have the checkbox on the bottom right to allow maintainer to edit ;) |
I added you as collaborateur to the fork. Hope that is what you needed? |
Spacing
Co-authored-by: Krystian Podemski <kpodemski@users.noreply.github.com>
@Shoprunners @MatShir it's all good |
thanks @Shoprunners |