Skip to content

add call declarations to digital-carbon#165

Draft
psparacino wants to merge 5 commits into
mainfrom
tufnel/optimize-sync-with-calls-declaration
Draft

add call declarations to digital-carbon#165
psparacino wants to merge 5 commits into
mainfrom
tufnel/optimize-sync-with-calls-declaration

Conversation

@psparacino
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@psparacino
Copy link
Copy Markdown
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