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
This is good for cases where matches don't start at the beginning of the string. However, for cases where the match would likely be at the beginning of the input, a form like:
would likely be better, avoiding the extra FindFirstChar call to validate something which Go is already going to validate.
We should evaluate how much this helps one set of cases vs how much this penalizes the other set of cases, and decide whether it's worth switching. (If we do this, note that certain cases in Go currently assume that FindFirstChar has already performed the match, e.g. if the entire expression is a case-sensitive string... that would need to be removed.)
The text was updated successfully, but these errors were encountered:
This is good for cases where matches don't start at the beginning of the string. However, for cases where the match would likely be at the beginning of the input, a form like:
The Regex scan loop is currently along the lines of:
This is good for cases where matches don't start at the beginning of the string. However, for cases where the match would likely be at the beginning of the input, a form like:
would likely be better, avoiding the extra FindFirstChar call to validate something which Go is already going to validate.
We should evaluate how much this helps one set of cases vs how much this penalizes the other set of cases, and decide whether it's worth switching. (If we do this, note that certain cases in Go currently assume that FindFirstChar has already performed the match, e.g. if the entire expression is a case-sensitive string... that would need to be removed.)
The text was updated successfully, but these errors were encountered: