Skip to content

CPLAT-2281 optimize copy unconsumed props#305

Merged
rmconsole7-wk merged 25 commits into3.1.0-wipfrom
CPLAT-2281-optimize-copyUnconsumedProps
Jul 11, 2019
Merged

CPLAT-2281 optimize copy unconsumed props#305
rmconsole7-wk merged 25 commits into3.1.0-wipfrom
CPLAT-2281-optimize-copyUnconsumedProps

Conversation

@joebingham-wk
Copy link
Contributor

@joebingham-wk joebingham-wk commented Jun 17, 2019

Motivation

To increase the performance of forwarding props, we are adding the addUnconsumedProps and addUnconsumedDomProps methods.

Changes

  • Add the addUnconsumedProps and addUnconsumedDomProps methods
  • Deprecate the copyUnconsumedProps and copyUnconsumedDomProps methods
  • Change _validDomProps from a SplayTree to a Set

Release Notes

Review

See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.

Please review:

QA Checklist

  • Tests were updated and provide good coverage of the changeset and other affected code
  • Manual testing was performed if needed

Merge Checklist

While we perform many automated checks before auto-merging, some manual checks are needed:

  • A Client Platform member has reviewed these changes
  • There are no unaddressed comments - this check can be automated if reviewers use the "Request Changes" feature
  • For release PRs - Version metadata in Rosie comment is correct

@aviary2-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

Copy link
Contributor

@aaronlademann-wf aaronlademann-wf left a comment

Choose a reason for hiding this comment

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

Sorry it took so long for me to get to this @joebingham-wk !

Looking good... nearly there.

Copy link
Contributor

@aaronlademann-wf aaronlademann-wf left a comment

Choose a reason for hiding this comment

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

+1

Can you post the perf data for this change for posterity?

@joebingham-wk
Copy link
Contributor Author

joebingham-wk commented Jul 2, 2019

Yep! Here's the spreadsheet with all of the tests recorded:
https://sandbox.wdesk.com/a/QWNjb3VudB81NDg4MTEzOTQ5OTk5MTA0/spreadsheet/c270726ab395458586aae2b90b309fa4/-1/sheet/2a9eefcc19134f91838d8d16d9a8622a

Summery:
Using addProps(copyUnconsumedProps):

  • Average Time: 180ms
  • Range: 78ms (with outlier) / 33ms (without outlier)

Using modifyProps(addUnconsumedProps):

  • Average Time: 165.76ms
  • Range: 14ms

Speed Increase: 8%

@greglittlefield-wf
Copy link
Contributor

+10

@Workiva/release-management-pp

@rmconsole7-wk rmconsole7-wk merged commit 07c7f0c into 3.1.0-wip Jul 11, 2019
@rmconsole7-wk rmconsole7-wk deleted the CPLAT-2281-optimize-copyUnconsumedProps branch July 11, 2019 22:58
@aaronlademann-wf aaronlademann-wf added this to the 3.1.0 milestone Aug 6, 2019
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.

6 participants