Skip to content

[v9] Optimize trait loop evaluation#19182

Merged
vitorenesduarte merged 2 commits intobranch/v9from
vitor/backport-19097/v9
Dec 9, 2022
Merged

[v9] Optimize trait loop evaluation#19182
vitorenesduarte merged 2 commits intobranch/v9from
vitor/backport-19097/v9

Conversation

@vitorenesduarte
Copy link
Copy Markdown
Contributor

@vitorenesduarte vitorenesduarte commented Dec 8, 2022

Backport #19097 to branch/v9.

This PR first cherry picks #14221 (resolving some conflicts), which allows the cherry-pick of #19097 to work without conflicts.

@github-actions github-actions Bot removed the request for review from r0mant December 8, 2022 14:12
This commit reduces the number of `log.Debug`s in the trait loop evaluation in case of a mismatch.

This commit also optimizes the trait eval loop ensuring that each regexp is compiled at-most once, and only if strictly needed.
@vitorenesduarte vitorenesduarte force-pushed the vitor/backport-19097/v9 branch from c81a60b to 0eca158 Compare December 8, 2022 18:18
@vitorenesduarte
Copy link
Copy Markdown
Contributor Author

@zmb3 @codingllama it turns out that I would have to backport two refactoring PRs (#14187 and then #14221) for the cherry pick of #19182 to work without conflicts.

Backporting those PRs was resulting in many conflicts so I opted to just backport #19182 in 0eca158.

@codingllama
Copy link
Copy Markdown
Contributor

@zmb3 @codingllama it turns out that I would have to backport two refactoring PRs (#14187 and then #14221) for the cherry pick of #19182 to work without conflicts.

Backporting those PRs was resulting in many conflicts so I opted to just backport #19182 in 0eca158.

Any noteworthy manual changes, @vitorenesduarte ?

@vitorenesduarte
Copy link
Copy Markdown
Contributor Author

@zmb3 @codingllama it turns out that I would have to backport two refactoring PRs (#14187 and then #14221) for the cherry pick of #19182 to work without conflicts.
Backporting those PRs was resulting in many conflicts so I opted to just backport #19182 in 0eca158.

Any noteworthy manual changes, @vitorenesduarte ?

No, just some conflicts in lib/services/user_test.go.

@vitorenesduarte vitorenesduarte merged commit e12c942 into branch/v9 Dec 9, 2022
@vitorenesduarte vitorenesduarte deleted the vitor/backport-19097/v9 branch December 9, 2022 06:58
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.

3 participants