5 is the appears to be the sweet spot for average token len

This commit is contained in:
Sasha Koshka 2024-09-19 09:40:00 -04:00
parent 288a1fb9ef
commit ff8f86e034

View File

@ -19,7 +19,7 @@ func parseString (text string) ([]runeLayout, []token) {
}
// alloc initial token slice
tokens := make([]token, 0, len(runes) / 3)
tokens := make([]token, 0, len(runes) / 5)
var index int
var startingIndex int