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)
Thu, Jun 13, 7:03 AM
Unknown Object (File)
Tue, Jun 11, 12:10 PM
Unknown Object (File)
Mon, Jun 10, 7:24 PM
Unknown Object (File)
Apr 4 2024, 8:11 PM
Unknown Object (File)
Apr 4 2024, 8:11 PM
Unknown Object (File)
Apr 4 2024, 8:10 PM
Unknown Object (File)
Apr 4 2024, 8:05 PM
Unknown Object (File)
Feb 21 2024, 2:21 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.