sirthias commented on PR #1247:
URL: https://github.com/apache/pekko/pull/1247#issuecomment-2076568944

   Yes, there is a (much more complicated) SWAR loop implemented in [borer's 
JSON 
parser](https://github.com/sirthias/borer/blob/4d639de35ade1bc2513a50a9da9587451b322476/core/src/main/scala/io/bullet/borer/json/JsonParser.scala#L430).
   Here we only have to look for a single known byte rather than a whole set of 
different characters and we also don't have to copy segments and do UTF8 
decoding at the same time.
   
   But the whole thing only makes sense if we can really get down to raw byte 
access via `Unsafe` or more modern means. And on ScalaJS a SWAR approach will 
just create overhead and be a lot slower than the simple loop.


-- 
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