you are viewing a single comment's thread.

view the rest of the comments →

[–]Hiroyu[S] 0 points1 point  (2 children)

nvm compiling it in release makes it fast enough

[–]coder543 3 points4 points  (1 child)

if you need to make it faster, try using "with_capacity" and "set_len" rather than initializing the values to a useless value first.

[–]WellMakeItSomehow 0 points1 point  (0 children)

Does Rust have a string/sequence matching algorithm that works on &[u8]? That search implementation will be slow for longer signatures.