General Bi-Weekly meeting.
Start: Monday 9th April 2018, 14:00 UTC (https://time.is/UTC)
Hangouts: https://meet.google.com/czc-kuep-jda
None in viper is misleadingFeel free to comment any additional agenda items here.
Not sure I will be able to join the call.
Anyway I think we should add #752 to the VIP Discussions.
Improving shift function.
shift is compiled to the following code:
['if', ['sle', '_s', 0],
['div', '_v', ['exp', 2, ['sub', 0, '_s']]],
['mul', '_v', ['exp', 2, '_s']]]]],
When _s == 0, ['div', '_v', ['exp', 2, ['sub', 0, '_s']]] and ['mul', '_v', ['exp', 2, '_s']]]] are the same. But in the div branch, it need to execute sub which potentially costs more gas. Suggest using slt instead of sle. This will also ease the verification. On the other hand, EIP145 proposes supporting shift opcode directly in EVM. Not sure when it will happen.
@yzhang90 Please create the two tickets/bugs you have discovered, much appreciated :smile:
Most helpful comment
Not sure I will be able to join the call.
Anyway I think we should add #752 to the VIP Discussions.