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

allow reading chunks from the input stream #267

Merged
merged 4 commits into from
Jan 3, 2025

Conversation

poszu
Copy link
Collaborator

@poszu poszu commented Dec 18, 2024

Syscall HintRead reads len bytes and keeps the remaining data for later reads.

Simplifying input reading in contracts results in reduced gas costs:

method was is
spawn 2640 1228
spend 5072 2052
deploy 8260 3276

Additionally, the singlesig wallet template ELF size was reduced 48K -> 44K.

Syscall HintRead reads `len` bytes and keeps remaining data for later
reads.
@poszu poszu force-pushed the keep-program-input-in-single-vec branch from 3971d16 to 0ffb3bd Compare December 18, 2024 18:02
@poszu poszu requested a review from jellonek December 18, 2024 18:03
@poszu poszu merged commit 8a10e23 into main Jan 3, 2025
12 checks passed
@poszu poszu deleted the keep-program-input-in-single-vec branch January 3, 2025 10:43
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