pekko icon indicating copy to clipboard operation
pekko copied to clipboard

Optimise ByteString lastIndexOf

Open pjfanning opened this issue 4 months ago • 2 comments

We don't explicitly implement this but we pick up an unoptimised one from scala.Seq. See #2148

I checked our main Pekko repos and found no uses of ByteString.lastIndexOf

pjfanning avatar Sep 05 '25 17:09 pjfanning

@He-Pin I can't find anywhere where lastIndexOf is used for ByteStrings. An optimisation might be nice but it is unlikely to help anyone.

pjfanning avatar Sep 05 '25 17:09 pjfanning

I checked both pekko and pekko-http, seems true, we can defer that optimization for now.

He-Pin avatar Sep 05 '25 18:09 He-Pin