golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
120.1k stars 17.24k forks source link

bytes, strings: add CutByte #67102

Open aimuz opened 2 weeks ago

aimuz commented 2 weeks ago

CutByte optimizes slicing operations for single-byte separators, offering a more efficient alternative when only a single byte is involved.

There is more discussion on https://golang.org/issue/67101.

Fixes #67101.

gopherbot commented 2 weeks ago

This PR (HEAD: ed17861607fce6dfbb700efe0b042469a19e8130) has been imported to Gerrit for code review.

Please visit Gerrit at https://go-review.googlesource.com/c/go/+/582176.

Important tips:

gopherbot commented 2 weeks ago

Message from Ian Lance Taylor:

Patch Set 1: Hold+1

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/582176. After addressing review feedback, remember to publish your drafts!