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
Per the golang-dev thread, the text/template line tracking is O(N^2):
// lineNumber reports which line we're on, based on the position of// the previous item returned by nextItem. Doing it this way// means we don't have to worry about peek double counting.func (l*lexer) lineNumber() int {
return1+strings.Count(l.input[:l.lastPos], "\n")
}
Per the golang-dev thread, the text/template line tracking is O(N^2):
Tracking bug for @robpike.
The text was updated successfully, but these errors were encountered: