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

add call declarations to digital-carbon #165

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

psparacino
Copy link
Collaborator

@psparacino psparacino commented Jul 3, 2024

This requires an updated specVersion to 1.2.0

Possible in this spec version to declare calls in the manifest: https://thegraph.com/docs/en/cookbook/avoid-eth-calls/#reducing-the-runtime-overhead-of-eth_calls

These calls can only have params prefixed with event (.address or .params.x). The calls do not run sequentially in the handler, but are performed concurrently and stored in memory until needed by the handler.

More of an experimental PR to see if this can marginally increase the speed.

@psparacino psparacino force-pushed the tufnel/optimize-sync-with-calls-declaration branch from 50da071 to 49d74e0 Compare July 11, 2024 13:26
@psparacino psparacino marked this pull request as ready for review July 11, 2024 13:34
@psparacino psparacino marked this pull request as draft July 17, 2024 18:40
@psparacino psparacino force-pushed the tufnel/optimize-sync-with-calls-declaration branch from 49d74e0 to 2085297 Compare July 19, 2024 16:13
@psparacino psparacino force-pushed the tufnel/optimize-sync-with-calls-declaration branch from 853ef94 to c112d62 Compare July 26, 2024 17:44
@0xAurelius
Copy link
Collaborator

Is this still worth doing? What did you find re: speed?

@psparacino
Copy link
Collaborator Author

Is this still worth doing? What did you find re: speed?

I tested two new deployments and the one with the call declarations actually took longer(*) to sync than a non-call manifest. No idea why and discord support had no ideas other. This is either a newer or not understood feature so I kind of abandoned it after that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants