The C implementation only looks for "--bou" not "--boundary--" this might have a positive impact on the performance.
I just found the memmem crate for Rust ( docs.rs/memmem/latest/memmem/ ) which improves the performance even more (7.47 s down to 2.05 s) and the readability improves significantly.
The C implementation only looks for "--bou" not "--boundary--" this might have a positive impact on the performance.
I just found the
memmem
crate for Rust ( docs.rs/memmem/latest/memmem/ ) which improves the performance even more (7.47 s down to 2.05 s) and the readability improves significantly.Thanks, you right. I will update the results.