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
Observe the bounds check on _ = s[x:]. In comparison, using _ = s[len(s):] doesn't generate a bounds check. But the semantics of copy guarantee that x <= len(s). So we should be able to eliminate the check.
See CL 27460 for a concrete instance in the runtime.
compiles to
Observe the bounds check on
_ = s[x:]
. In comparison, using_ = s[len(s):]
doesn't generate a bounds check. But the semantics ofcopy
guarantee thatx <= len(s)
. So we should be able to eliminate the check.See CL 27460 for a concrete instance in the runtime.
cc @brtzsnr @bradfitz
The text was updated successfully, but these errors were encountered: