Timeline for Should I use `storage` or `memory` when just reading the value and not changing state?
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 3, 2018 at 18:06 | comment | added | Rob Hitchens | I don't think one can generalize like that and always be right. For example, if the process is slightly more involved and accesses the value more than once, then the advantage goes to read it from storage once and store a copy in memory. | |
Aug 3, 2018 at 17:38 | comment | added | cryptoninja | Would a memory pointer always be cheaper than a memory variable in terms of gas costs? | |
Aug 3, 2018 at 13:54 | history | answered | Rob Hitchens | CC BY-SA 4.0 |