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

refactor: optimise l1 to l2 message fetching #8672

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

LHerskind
Copy link
Contributor

@LHerskind LHerskind commented Sep 20, 2024

Takes the same approach as done in other optimisations tasks related to #8457 and before it go looking at the events, it will check values in the contract to figure out if there is even anything to look for. If we figure that there is nothing to look for, we update the l1 block number of interest, and call it a day. This allow getting rid of a bunch of get logs call and replacing them with a single function call instead. Does not impact the tests in E2E significantly because they are running on anvil without anything but our rollup happening so there is not a lot of wasted effort there, but should see meaningful changes when pointed at larger systems.

Copy link
Contributor Author

LHerskind commented Sep 20, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @LHerskind and the rest of your teammates on Graphite Graphite

@LHerskind LHerskind added the e2e-all CI: Enables this CI job. label Sep 20, 2024
@LHerskind LHerskind marked this pull request as ready for review September 20, 2024 15:23
@LHerskind LHerskind merged commit 7b1fb45 into master Sep 26, 2024
93 checks passed
@LHerskind LHerskind deleted the lh/inbox-sync-optimisation branch September 26, 2024 18:45
Rumata888 pushed a commit that referenced this pull request Sep 27, 2024
Takes the same approach as done in other optimisations tasks related to
#8457 and before it go looking at the events, it will check values in
the contract to figure out if there is even anything to look for. If we
figure that there is nothing to look for, we update the l1 block number
of interest, and call it a day. This allow getting rid of a bunch of get
logs call and replacing them with a single function call instead. Does
not impact the tests in E2E significantly because they are running on
anvil without anything but our rollup happening so there is not a lot of
wasted effort there, but should see meaningful changes when pointed at
larger systems.
Rumata888 pushed a commit that referenced this pull request Sep 27, 2024
Takes the same approach as done in other optimisations tasks related to
#8457 and before it go looking at the events, it will check values in
the contract to figure out if there is even anything to look for. If we
figure that there is nothing to look for, we update the l1 block number
of interest, and call it a day. This allow getting rid of a bunch of get
logs call and replacing them with a single function call instead. Does
not impact the tests in E2E significantly because they are running on
anvil without anything but our rollup happening so there is not a lot of
wasted effort there, but should see meaningful changes when pointed at
larger systems.
Rumata888 pushed a commit that referenced this pull request Sep 27, 2024
Takes the same approach as done in other optimisations tasks related to
#8457 and before it go looking at the events, it will check values in
the contract to figure out if there is even anything to look for. If we
figure that there is nothing to look for, we update the l1 block number
of interest, and call it a day. This allow getting rid of a bunch of get
logs call and replacing them with a single function call instead. Does
not impact the tests in E2E significantly because they are running on
anvil without anything but our rollup happening so there is not a lot of
wasted effort there, but should see meaningful changes when pointed at
larger systems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e-all CI: Enables this CI job.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants