News for hackers. Stuff that matters.
Re:Python startup time: milliseconds matter by quotemstr on Wednesday May 02, 2018 @03:15PM (#16980235)
I put similar code in Emacs's vc-hg to get revision information straight form Mercurial's on-disk data structures instead of firing up an hg subprocess.
Re:Python startup time: milliseconds matter by faho on Wednesday May 02, 2018 @04:15PM (#16980770)
You mean actually reading dirstate[0] or just the branch/bookmark files?

We also do the latter, but dirstate format isn't easily readable just with shell builtins (lots of fixed-length fields with NUL-byte padding, also we don't even have a `stat` builtin and the external program isn't a thing on macOS AFAIK), so we still fire up `hg status` for that - but only after we decide that there is a hg repo.

[0]:https://www.mercurial-scm.org/wiki/DirState

Re:Python startup time: milliseconds matter by quotemstr on Wednesday May 02, 2018 @05:16PM (#16981223)