jetscii icon indicating copy to clipboard operation
jetscii copied to clipboard

const `ByteSubstring::new`

Open jonathanstrong opened this issue 6 months ago • 0 comments

hey - looks like this was at least planned at some point, since /* const */ keyword was commented out in a few places.

are you interested in merging something like this?

seems like the const version of the simd code is a bit uglier, but equivalent. if there are concerns about the const version of the code in new not being as fast, perhaps there could be a impl<'static> ByteSubstring<'static> block with a new_static method or something.

jonathanstrong avatar Aug 14 '24 17:08 jonathanstrong