by kelnos · 7y ago · 0 comments
The only way to know for sure would be to profile each bit to see what dominates: the file I/O? The regex matching? The FFI? The printing to stdout?
Also, looks like there is a rust wrapper for PCRE[0]; might be interesting to try it to get a more apples-to-apples comparison.
Is it though? I interpreted question the following way.
"Rust is a tool in my tool box, when the reason for picking it over other tools isn't demonstrably true, what am i doing wrong?"
I agree with the rest of your comment, just not with calling the OP or their question silly.
The benchmarks game suggests that it's quite fast: https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
I have always consistently found the Rust community to be nothing but amazingly helpful and friendly. I've posted in the Rust subreddit before in a different account and got the same helpful and friendly responses I did this time.
If we should judge a language by its community, then I, for one, wholeheartedly recommend Rust.
There was actually another post recently where someone asked a similar question only about Kotlin, and there ended up being this collaborative effort where people kept rewriting and optimizing both his Kotlin and his Rust code. Check it out:
https://www.reddit.com/r/rust/comments/d85gyh/why_is_this_sl...
There's an update too:
https://www.reddit.com/r/rust/comments/d8kew3/why_is_this_sl...
But I agree, I'm not nice at all, indeed.
But we can't all be geniuses. I'm not one, either, but I don't feel attacked by anyone for pointing that out, and you shouldn't, either.