Skip to content

Improve efficiency of array manipulation in multicall.ts in eth_call promises#498

Open
aspnxdd wants to merge 3 commits into
subsquid:masterfrom
aspnxdd:feat/improve-efficiency-array-multicall
Open

Improve efficiency of array manipulation in multicall.ts in eth_call promises#498
aspnxdd wants to merge 3 commits into
subsquid:masterfrom
aspnxdd:feat/improve-efficiency-array-multicall

Conversation

@aspnxdd

@aspnxdd aspnxdd commented Jun 17, 2026

Copy link
Copy Markdown

Summary

Optimizes the generated EVM multicall helper by avoiding extra array materialization and flat() when processing paged calls.

I've also added a JS file to bench it, the results are of a ~100% improvement (2x) in speed.

@aspnxdd aspnxdd marked this pull request as ready for review June 17, 2026 21:41
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.

1 participant