sablier-labs / v2-core

⏳ Core smart contracts of the Sablier V2 token distribution protocol
https://sablier.com
Other
311 stars 48 forks source link

Research on re-writing some functions in Yul to optimize for gas #795

Open smol-ninja opened 10 months ago

smol-ninja commented 10 months ago

Gas costs are relevant not only on Ethereum but on L2s as well. It can even influence the choice of the protocol by users. There is already an ongoing discussion for ideas on optimising contracts for gas.

Yul, being an intermediate language, offers more efficient gas management while interacting with smart contracts. Investigate functions and subroutines where Yul can be used to substitute Solidity without affecting the functionalities. Some of the areas that can be looked at:

PaulRBerg commented 10 months ago

Yul typically impairs the readability of the code, but I'm happy to give this idea a go (and see some optimization proposals).

Anyway - I'd classify this as effort: epic.

github-actions[bot] commented 1 day ago

This issue is stale because it has been open 182 days with no activity. Leave a comment or remove the "stale" label, otherwise this will be closed in 14 days.

smol-ninja commented 1 day ago

Keep it open for a few more months.