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

Don't set isDirty to true in diff callbacks #9765

Merged
merged 2 commits into from
Mar 13, 2025
Merged

Conversation

gitKrystan
Copy link
Contributor

@gitKrystan gitKrystan commented Mar 12, 2025

Theoretically the diff function is smart enough for this to no longer be necessary. Reduces overnotification.

Description

Notes for the release

@gitKrystan gitKrystan added 🎯 canary PR is targeting canary (default) 🏷️ perf PRs that improve performance in a notable way ci-perf Activates Performance Checks in CI labels Mar 12, 2025
Copy link

github-actions bot commented Mar 13, 2025

Performance Report for b6d1cb8

Scenario - basic-record-materialization: ⚠️ Performance regressed

⚠️ duration
phase estimated regression +8ms [1ms to 15ms] OR +0.56% [0.05% to 1.05%]
☑️ Phase [navigationStart] => [start-data-generation]
phase no difference [0ms to 0ms]
☑️ Phase [start-data-generation] => [start-push-payload]
phase no difference [-1ms to 1ms]
☑️ Phase [start-push-payload] => [start-peek-records]
phase no difference [-1ms to 9ms]
☑️ Phase [start-peek-records] => [start-record-materialization]
phase no difference [0ms to 0ms]
☑️ Phase [start-record-materialization] => [end-record-materialization]
phase no difference [0ms to 7ms]
☑️ Phase [end-record-materialization] => [Test End]
phase no difference [0ms to 0ms]

Scenario - complex-record-materialization: ☑️ Performance is stable

☑️ duration
phase no difference [-1ms to 9ms]
☑️ Phase [navigationStart] => [start-data-generation]
phase no difference [0ms to 1ms]
☑️ Phase [start-data-generation] => [start-push-payload]
phase no difference [-1ms to 2ms]
☑️ Phase [start-push-payload] => [start-peek-records]
phase no difference [-2ms to 8ms]
☑️ Phase [start-peek-records] => [start-record-materialization]
phase no difference [0ms to 0ms]
☑️ Phase [start-record-materialization] => [end-record-materialization]
phase no difference [-1ms to 2ms]
☑️ Phase [end-record-materialization] => [Test End]
phase no difference [0ms to 0ms]

Scenario - complex-record-materialization-with-relationship-materialization: ☑️ Performance is stable

☑️ duration
phase no difference [-5ms to 5ms]
☑️ Phase [navigationStart] => [start-data-generation]
phase no difference [-1ms to 0ms]
☑️ Phase [start-data-generation] => [start-push-payload]
phase no difference [-1ms to 2ms]
☑️ Phase [start-push-payload] => [start-peek-records]
phase no difference [-5ms to 5ms]
☑️ Phase [start-peek-records] => [start-record-materialization]
phase no difference [0ms to 0ms]
☑️ Phase [start-record-materialization] => [start-field-access]
phase no difference [-2ms to 0ms]
☑️ Phase [start-field-access] => [start-relationship-access]
phase no difference [0ms to 0ms]
☑️ Phase [start-relationship-access] => [end-relationship-access]
phase no difference [0ms to 0ms]
☑️ Phase [end-relationship-access] => [Test End]
phase no difference [0ms to 0ms]

Scenario - relationship-materialization-simple: ☑️ Performance is stable

☑️ duration
phase no difference [-5ms to 2ms]
☑️ Phase [navigationStart] => [start-find-all]
phase no difference [-1ms to 0ms]
☑️ Phase [start-find-all] => [start-materialization]
phase no difference [-4ms to 1ms]
☑️ Phase [start-materialization] => [end-materialization]
phase no difference [-1ms to 2ms]
☑️ Phase [end-materialization] => [Test End]
phase no difference [-1ms to 1ms]

Scenario - relationship-materialization-complex: ✅ Performance improved

✅ duration
phase estimated improvement -13ms [-22ms to -4ms] OR -0.5% [-0.84% to -0.15%]
☑️ Phase [navigationStart] => [start-data-generation]
phase no difference [0ms to 0ms]
☑️ Phase [start-data-generation] => [start-push-payload]
phase no difference [-1ms to 1ms]
☑️ Phase [start-push-payload] => [start-peek-records]
phase no difference [-3ms to 5ms]
☑️ Phase [start-peek-records] => [start-record-materialization]
phase no difference [0ms to 0ms]
☑️ Phase [start-record-materialization] => [start-relationship-materialization]
phase no difference [-6ms to 2ms]
✅ Phase [start-relationship-materialization] => [start-push-payload2]
phase estimated improvement -10ms [-18ms to -1ms] OR -0.86% [-1.49% to -0.11%]
☑️ Phase [start-push-payload2] => [start-relationship-materialization2]
phase no difference [-2ms to 5ms]
☑️ Phase [start-relationship-materialization2] => [end-relationship-materialization2]
phase no difference [-1ms to 3ms]
✅ Phase [end-relationship-materialization2] => [Test End]
phase estimated improvement -2ms [-4ms to 0ms] OR -1.36% [-2.73% to -0.18%]

Scenario - unload: ☑️ Performance is stable

☑️ duration
phase no difference [-5ms to 3ms]
✅ Phase [navigationStart] => [start-push-payload]
phase estimated improvement -1ms [-2ms to 0ms] OR -0.68% [-1.22% to -0.12%]
☑️ Phase [start-push-payload] => [start-unload-records]
phase no difference [-4ms to 1ms]
☑️ Phase [start-unload-records] => [end-unload-records]
phase no difference [-1ms to 1ms]
☑️ Phase [end-unload-records] => [Test End]
phase no difference [0ms to 1ms]

Scenario - unload-all: ☑️ Performance is stable

☑️ duration
phase no difference [-3ms to 7ms]
☑️ Phase [navigationStart] => [start-push-payload]
phase no difference [-2ms to 0ms]
☑️ Phase [start-push-payload] => [start-materialization]
phase no difference [-2ms to 4ms]
☑️ Phase [start-materialization] => [start-unload-all]
phase no difference [-1ms to 3ms]
☑️ Phase [start-unload-all] => [end-unload-all]
phase no difference [-1ms to 4ms]
☑️ Phase [end-unload-all] => [Test End]
phase no difference [-1ms to 0ms]

Scenario - destroy: ☑️ Performance is stable

☑️ duration
phase no difference [0ms to 6ms]
☑️ Phase [navigationStart] => [start-push-payload]
phase no difference [0ms to 1ms]
☑️ Phase [start-push-payload] => [start-destroy-records]
phase no difference [-2ms to 2ms]
☑️ Phase [start-destroy-records] => [end-destroy-records]
phase no difference [-1ms to 2ms]
☑️ Phase [end-destroy-records] => [Test End]
phase no difference [0ms to 1ms]

Scenario - add-children: ☑️ Performance is stable

☑️ duration
phase no difference [-2ms to 2ms]
☑️ Phase [navigationStart] => [start-push-initial-payload]
phase no difference [0ms to 1ms]
☑️ Phase [start-push-initial-payload] => [start-push-update-payload]
phase no difference [-1ms to 2ms]
☑️ Phase [start-push-update-payload] => [end-push-update-payload]
phase no difference [-2ms to 1ms]
☑️ Phase [end-push-update-payload] => [Test End]
phase no difference [0ms to 0ms]

Scenario - unused-relationships: ☑️ Performance is stable

☑️ duration
phase no difference [-2ms to 3ms]
☑️ Phase [navigationStart] => [start-push-payload]
phase no difference [-1ms to 1ms]
☑️ Phase [start-push-payload] => [end-push-payload]
phase no difference [-1ms to 3ms]
☑️ Phase [end-push-payload] => [Test End]
phase no difference [0ms to 0ms]

Scenario - update-with-same-state: ☑️ Performance is stable

☑️ duration
phase no difference [-4ms to 6ms]
☑️ Phase [navigationStart] => [start-data-generation]
phase no difference [0ms to 0ms]
☑️ Phase [start-data-generation] => [start-push-initial-payload]
phase no difference [-1ms to 0ms]
☑️ Phase [start-push-initial-payload] => [start-peek-records]
phase no difference [-1ms to 2ms]
☑️ Phase [start-peek-records] => [start-record-materialization]
phase no difference [0ms to 0ms]
☑️ Phase [start-record-materialization] => [start-relationship-materialization]
phase no difference [0ms to 1ms]
☑️ Phase [start-relationship-materialization] => [start-local-removal]
phase no difference [-2ms to 3ms]
☑️ Phase [start-local-removal] => [start-push-minus-one-payload]
phase no difference [-1ms to 2ms]
✅ Phase [start-push-minus-one-payload] => [start-local-addition]
phase estimated improvement -1ms [-1ms to 0ms] OR -6.06% [-8.68% to -3.53%]
☑️ Phase [start-local-addition] => [start-push-plus-one-payload]
phase no difference [0ms to 2ms]
☑️ Phase [start-push-plus-one-payload] => [end-push-plus-one-payload]
phase no difference [-2ms to 1ms]
☑️ Phase [end-push-plus-one-payload] => [Test End]
phase no difference [0ms to 0ms]

Scenario - update-with-same-state-m2m: ⚠️ Performance regressed

⚠️ duration
phase estimated regression +4ms [1ms to 8ms] OR +0.45% [0.06% to 0.83%]
☑️ Phase [navigationStart] => [start-data-generation]
phase no difference [0ms to 1ms]
⚠️ Phase [start-data-generation] => [start-push-initial-payload]
phase estimated regression +1ms [0ms to 2ms] OR +0.4% [0.07% to 0.7%]
☑️ Phase [start-push-initial-payload] => [start-peek-records]
phase no difference [-2ms to 1ms]
☑️ Phase [start-peek-records] => [start-record-materialization]
phase no difference [0ms to 0ms]
☑️ Phase [start-record-materialization] => [start-relationship-materialization]
phase no difference [0ms to 0ms]
☑️ Phase [start-relationship-materialization] => [start-local-removal]
phase no difference [0ms to 1ms]
☑️ Phase [start-local-removal] => [start-push-minus-one-payload]
phase no difference [0ms to 2ms]
☑️ Phase [start-push-minus-one-payload] => [start-local-addition]
phase no difference [-1ms to 1ms]
⚠️ Phase [start-local-addition] => [start-push-plus-one-payload]
phase estimated regression +2ms [1ms to 3ms] OR +1.49% [0.78% to 2.24%]
☑️ Phase [start-push-plus-one-payload] => [end-push-plus-one-payload]
phase no difference [0ms to 2ms]
☑️ Phase [end-push-plus-one-payload] => [Test End]
phase no difference [0ms to 0ms]

@gitKrystan gitKrystan force-pushed the do-we-still-need-isdirty branch from 8d9a9ba to 6ff1771 Compare March 13, 2025 21:13
@runspired runspired merged commit c961bc8 into main Mar 13, 2025
21 of 22 checks passed
@runspired runspired deleted the do-we-still-need-isdirty branch March 13, 2025 22:25
MehulKChaudhari pushed a commit to MehulKChaudhari/ember-data that referenced this pull request Mar 16, 2025
* More overnotification fixes

* Fix DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE case
gitKrystan added a commit that referenced this pull request Mar 21, 2025
* More overnotification fixes

* Fix DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE case
gitKrystan added a commit that referenced this pull request Mar 21, 2025
* feat: schema type utils (#9757)

* minor type improvements

* chore: fixup types

* add api docs

* nice things

* account for schema presence

* cleanup test

* chore: update contributing docs (#9758)

* chore: Improve contributing experience (#9759)

* chore: improve developing experience on local

* more

* temporarily deactivate some scenarios

* deactivate more lints

* deactivate more prod tests

* another

* chore: reduce simple Map/Set ops (#9761)

* perf: faster iteration of relationship payloads (#9762)

faster iteration of payloads

* chore: restructure SchemaRecord test file layout to make it easier to navigate (#9763)

* chore: simplify test file layout

* chore: move polaris test files to new structure

* docs: LinksMode and Polymorphic Relationship Guide, stubs out guide for LegacyMode vs PolarisMode (#9764)

* docs: stub out guides for SchemaRecord, LinksMode, PolarisMode etc.

* add linksmode guide

* fix annotation

* Update guides/relationships/features/links-mode.md

Co-authored-by: Krystan HuffMenne <kmenne+github@gmail.com>

* Update guides/relationships/features/links-mode.md

Co-authored-by: Krystan HuffMenne <kmenne+github@gmail.com>

* Update guides/relationships/features/links-mode.md

Co-authored-by: Krystan HuffMenne <kmenne+github@gmail.com>

* Update guides/relationships/features/links-mode.md

Co-authored-by: Krystan HuffMenne <kmenne+github@gmail.com>

* Update guides/relationships/features/links-mode.md

Co-authored-by: Krystan HuffMenne <kmenne+github@gmail.com>

* Update guides/relationships/features/links-mode.md

Co-authored-by: Krystan HuffMenne <kmenne+github@gmail.com>

* Update guides/relationships/features/links-mode.md

Co-authored-by: Krystan HuffMenne <kmenne+github@gmail.com>

* Update guides/relationships/features/links-mode.md

Co-authored-by: Krystan HuffMenne <kmenne+github@gmail.com>

* Update guides/relationships/features/links-mode.md

Co-authored-by: Krystan HuffMenne <kmenne+github@gmail.com>

* Update guides/relationships/features/links-mode.md

Co-authored-by: Krystan HuffMenne <kmenne+github@gmail.com>

* Update guides/relationships/features/links-mode.md

Co-authored-by: Krystan HuffMenne <kmenne+github@gmail.com>

* Update guides/relationships/features/links-mode.md

Co-authored-by: Krystan HuffMenne <kmenne+github@gmail.com>

* cleanup op

* rewrite future thoughts

* stub out more of the guide

* add docs on polymorphism

* stub out guide

* add note on interop

* add reactivity overview

---------

Co-authored-by: Krystan HuffMenne <kmenne+github@gmail.com>

* feat: improve debuggability of SchemaRecord, RecordArray and Identifier (#9766)

* feat: improve debuggability of SchemaRecord, RecordArray and Identifier

* fix configurability

* fix keys

* feat: persist runtime config (#9767)

* feat: persist runtime config

* ensure fastboot works

* Don't set isDirty to true in diff callbacks (#9765)

* More overnotification fixes

* Fix DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE case

* feat: ensure objects behave amazeballs (#9768)

* feat: ensure objects behave amazeballs

* add tests for record iteration

* add more tests

* fix(deps): update dependency @babel/runtime to v7.26.10 [security] (#9760)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: remove restriction on new field kinds being used with legacy mode

* improve types

* Revert "improve types"

This reverts commit 84daef7.

* Revert "chore: remove restriction on new field kinds being used with legacy mode"

This reverts commit 3fd81bf.

* Widen Peer Range for ember-inflector (#9770)

* chore: remove restriction on new field kinds being used with legacy mode (#9769)

* chore: remove restriction on new field kinds being used with legacy mode

* chore: cleanup types

* fix

* fix test

* fix docs

* chore: cleanup @ember/service deprecation from shipped library code (#9773)

* Add: tests verify behavior mutating a record  (#9754)

* add: tests verify behavior mutating a related record from a checked-out record

* fix: lint

* fix: test

* fix: lint

* fix: better reordering detection when remoteClearsLocal is true (#9771)

* Fix DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE reordering detection

* add failing test

* notification tests

* implement fix

* cleanup console logs

* fix spurrious type issue

---------

Co-authored-by: Chris Thoburn <runspired@users.noreply.github.com>

* Fix some lint

---------

Co-authored-by: Chris Thoburn <runspired@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jon Johnson <jon.johnson@ucsf.edu>
Co-authored-by: Mehul Kiran Chaudhari <55375534+MehulKChaudhari@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-perf Activates Performance Checks in CI 🎯 canary PR is targeting canary (default) 🏷️ perf PRs that improve performance in a notable way
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants