pjfanning opened a new pull request, #2309:
URL: https://github.com/apache/pekko/pull/2309

   ByteString inherits the contains function from Seq but Seq has a default 
implementation that uses the `exists` function (`exists(_ == elem)`).
   
   We have an optimised version of indexOf in ByteString and it just seems 
better to use that for `contains` check too.
   ```
   def contains[B :> Byte](b: B) = indexOf(b) != -1 
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to