Skip to content

refactor: eliminate memory allocations in calldata parsing#18

Merged
ozwaldorf merged 2 commits intofeat/size-optimizationsfrom
feat/size-optimizations-A
Feb 10, 2026
Merged

refactor: eliminate memory allocations in calldata parsing#18
ozwaldorf merged 2 commits intofeat/size-optimizationsfrom
feat/size-optimizations-A

Conversation

@g4titanx
Copy link
Member

No description provided.

@g4titanx g4titanx requested a review from ozwaldorf February 10, 2026 18:34
@ozwaldorf
Copy link
Member

Nice!

@ozwaldorf ozwaldorf merged commit 0b38769 into feat/size-optimizations Feb 10, 2026
4 checks passed
ozwaldorf added a commit that referenced this pull request Feb 11, 2026
* refactor: split native and erc20 into unique contracts

Reduces contract sizes to:
- ERC20: 11Kb
- Native: 10Kb

* fix: forge lint to require erc20 successes

* fix: forge lint to hardcode runtime keccak computation

* optimize: custom errors and unchecked loops, reduces bytecode by ~2.2k

* optimize: inline constant, save 60 bytes

* chore: mark functions external instead of public

* chore: forge fmt

* feat: split artifact files

* refactor: eliminate memory allocations in calldata parsing (#18)

* refactor: eliminate memory allocations in calldata parsing

* chore: update artifacts

---------

Co-authored-by: alake <g4titan1@gmail.com>
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