DEV Community

Discussion on: Which Programming language is faster at reading?

Collapse
 
kawogi profile image
Kai Giebeler • Edited

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.

Collapse
 
fredysandoval profile image
Fredy Sandoval

Thanks, you right. I will update the results.