crystal-lang / shards

Dependency manager for the Crystal language
Other
763 stars 100 forks source link

Mercurial command server #459

Open f-fr opened 3 years ago

f-fr commented 3 years ago

This is a modification of the HgResolver from some other pull request to make use of the hg command server to speed up hg commands.

The mercurial command server is feature of hg to overcome the (relatively long) startup time of the Python interpreter. Instead of starting a new interpreter for each single hg command only a single process is started. All subsequent hg commands are then passed to this running process.

The command server is started by HgResolver the first time a command is run. The same command server is also used for all test cases.

This overall reduces the running time of all hg tests to a few seconds.

straight-shoota commented 3 years ago

Please let's focus on #458 first and revisit this once that is merged.

straight-shoota commented 3 years ago

458 has been merged, so we can move forward with this.

Sorry for the slow review process 🙇‍♂️