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
The range-based zero should be enabled for all versions but Go 1.4 using build tags. When Go 1.5 is released, we will stop supporting Go 1.3, so only 1.4 needs the custom implementation. After 1.6 is out, the custom implementation can be removed entirely.
The text was updated successfully, but these errors were encountered:
Go 1.5 optimizes code such as the following:
to a duff's device to zero memory in the slice. With Go tip, it benchmarks faster than the
zero.Bytes
function.The range-based zero should be enabled for all versions but Go 1.4 using build tags. When Go 1.5 is released, we will stop supporting Go 1.3, so only 1.4 needs the custom implementation. After 1.6 is out, the custom implementation can be removed entirely.
The text was updated successfully, but these errors were encountered: