You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, zeros are run length encoded using the format <length_u8>00. @Vectorized brought up that in situations where zero bytes are non-repeating, it may be more efficient to encode them as <length_u8 - 1>00 to save on non-zero calldata byte costs.
Action item
Profile this optimization to determine whether it saves gas on average. If so, change the encoding scheme to further optimize calldata costs per @Vectorized's suggestion.
The text was updated successfully, but these errors were encountered:
Overview
Currently, zeros are run length encoded using the format
<length_u8>00
. @Vectorized brought up that in situations where zero bytes are non-repeating, it may be more efficient to encode them as<length_u8 - 1>00
to save on non-zero calldata byte costs.Action item
Profile this optimization to determine whether it saves gas on average. If so, change the encoding scheme to further optimize calldata costs per @Vectorized's suggestion.
The text was updated successfully, but these errors were encountered: