use IndexByte instead of IndexRune everywhere because it's faster.
This commit is contained in:
@@ -29,7 +29,7 @@ func Parse(content string) iter.Seq[Block] {
|
||||
prevIndex := 0
|
||||
|
||||
for index < max {
|
||||
pu := strings.IndexRune(content[index:], ':')
|
||||
pu := strings.IndexByte(content[index:], ':')
|
||||
if pu == -1 {
|
||||
// reached end
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user