News for hackers. Stuff that matters.
Re:Show HN: Fast `git status` (git core.fsmonitor in Rust) by bluejekyll on Wednesday May 30, 2018 @10:49PM (#17193585)
How does this differ from the standard fsmonitor?

This appears to mainly be a lightweight wrapper of watchman.

Re:Show HN: Fast `git status` (git core.fsmonitor in Rust) by jgavris on Wednesday May 30, 2018 @10:51PM (#17193598)
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--fsm...

Re:Show HN: Fast `git status` (git core.fsmonitor in Rust) by glandium on Thursday May 31, 2018 @01:00AM (#17194068)
You 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.
Re:Show HN: Fast `git status` (git core.fsmonitor in Rust) by jgavris on Thursday May 31, 2018 @02:29PM (#17198791)
Good suggestion! Without the fsmonitor enabled at all that looks more like 400ms on my iMac Pro.
Re:Show HN: Fast `git status` (git core.fsmonitor in Rust) by bluejekyll on Wednesday May 30, 2018 @10:57PM (#17193622)
Thanks for the link. Yes, that makes sense. It’s also less code. :)

Edit: well, maybe just fewer comments... ha

Re:Show HN: Fast `git status` (git core.fsmonitor in Rust) by jgavris on Wednesday May 30, 2018 @11:21PM (#17193724)
Yes, 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.