Skip to content
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

Add to array method in mustache templates and assert it's faster #625

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

jillingk
Copy link
Contributor

Added the toArray() method in every model (tested in checkout) to make it easier to parse models to arrays. Tested that this is in fact faster that parsing to json string and back to array (speed up of about 2x).

@jillingk jillingk requested a review from a team as a code owner February 19, 2024 08:42
@jillingk jillingk added the breaking change Introduces a breaking API change (correlating with MAJOR in Semantic Versioning) label Feb 19, 2024
@jillingk jillingk requested a review from wboereboom February 19, 2024 09:27
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
95.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@wboereboom
Copy link
Contributor

We can safely ignore sonarcloud here, as it is triggering on generated code

@jillingk jillingk merged commit 636762d into main Feb 22, 2024
2 of 3 checks passed
@jillingk jillingk deleted the to-array-mustache branch February 22, 2024 09:11
@wboereboom wboereboom added Feature and removed breaking change Introduces a breaking API change (correlating with MAJOR in Semantic Versioning) labels Feb 22, 2024
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.

3 participants