Page MenuHomePhabricator

[lib] Run conversion only on state check
ClosedPublic

Authored by michal on Jul 28 2023, 4:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 9:00 AM
Unknown Object (File)
Nov 20 2024, 5:40 PM
Unknown Object (File)
Nov 20 2024, 5:40 PM
Unknown Object (File)
Nov 20 2024, 5:40 PM
Unknown Object (File)
Nov 20 2024, 5:35 PM
Unknown Object (File)
Oct 22 2024, 2:30 PM
Unknown Object (File)
Oct 22 2024, 2:30 PM
Unknown Object (File)
Oct 22 2024, 2:29 PM
Subscribers

Details

Summary

ENG-4524
The id schema conversion for the state check was run everytime selector needed to be rerun, even when it wasn't necessary (e.g. navigating between threads). This diff changes it to so that the conversion is run only when the state check is requested from the keyserver.

Test Plan
  • Checked that the state check still runs correctly
  • Can't reproduce the performance problem on my machine (too small redux) but checked the performance graph in the browser when navigating between threads:

Before the changes:

image.png (1×1 px, 250 KB)

After the changes:
image.png (1×464 px, 195 KB)

You can see that the conversion doesn't run.

For comparison here's the graph for the current master:

image.png (1×1 px, 155 KB)

The highlighted Cn function is the id schema conversion function

Diff Detail

Repository
rCOMM Comm
Branch
micha/state-check-fix-2
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Jul 28 2023, 4:35 AM
Harbormaster failed remote builds in B21292: Diff 29160!
This revision is now accepted and ready to land.Jul 28 2023, 6:04 AM
This revision was landed with ongoing or failed builds.Jul 28 2023, 6:09 AM
This revision was automatically updated to reflect the committed changes.