3 ms·
In my benchmarks it's about twice as fast as the reference Perl script monitor. Also just a quick exploration for me into Rust. https://github.com/git/git/blob
by jgavris 8y ago
In my benchmarks it's about twice as fast as the reference Perl script monitor. Also just a quick exploration for me into Rust.
https://github.com/git/git/blob/v2.16.0/templates/hooks--fsmonitor-watchman.sample https://github.com/git/git/blob/v2.16.0/templates/hooks--fsm...
- bluejekyll 8y agoThanks for the link. Yes, that makes sense. It’s also less code. :) Edit: well, maybe just fewer comments... ha
- jgavris 8y agoYes, the Perl is very short, and has more comments. I missed the Perl era so it was a bit of work for me to figure out how it worked enough to implement it in Rust.
- glandium 8y agoYou should make it clearer that the benchmark is perl fsmonitor vs. rust fsmonitor. Without reading the comments here, I would have thought it was without fsmonitor vs. with.
- jgavris 8y agoGood suggestion! Without the fsmonitor enabled at all that looks more like 400ms on my iMac Pro.