solidity-book icon indicating copy to clipboard operation
solidity-book copied to clipboard

Added in a Chapter on Optimization

Open ControlCplusControlV opened this issue 3 years ago • 4 comments

Compiling my thoughts for tips on writing optimal code, still a rough draft as I need to add in code examples but wanted to make this draft PR to give you an idea as to content. Also still need a lot on Assembly optimizations and inline stuff, as well as some conditional optimizations people should make

ControlCplusControlV avatar Jan 15 '22 06:01 ControlCplusControlV

✔️ Deploy Preview for solidity-book ready!

🔨 Explore the source changes: 87cb0856a6bec775dc1e2d9cd0915a9c0df13987

🔍 Inspect the deploy log: https://app.netlify.com/sites/solidity-book/deploys/61ecd75b9cbffa0008c0b690

😎 Browse the preview: https://deploy-preview-14--solidity-book.netlify.app

netlify[bot] avatar Jan 15 '22 06:01 netlify[bot]

Looks good! LMK when you want an in-depth review

gakonst avatar Jan 18 '22 18:01 gakonst

I want to add more code examples which is whats holding it back for me, I also want to add a couple other sections + tips

ControlCplusControlV avatar Jan 18 '22 22:01 ControlCplusControlV

@gakonst added some more changes, and polished it up. I am ready for review, think this has most of the vanilla gas optimization tricks that don't hurt readability and stay within the realm of Solidity. May make a chapter later on with more extreme tips but I think this is good for now

ControlCplusControlV avatar Jan 23 '22 04:01 ControlCplusControlV