Announcing speedrunner 0.4.10, which I wrote.
It keeps a command-line tool imported in a daemon and forks that daemon for
each call, so the interpreter start and the imports are skipped. No
per-tool setup: "srr black --check sample.py", 92 ms natively, 12 ms
served. Version 0.4.10 also serves tools called through "uv run" and
"python -m": "python3 -m pip --version" goes from 304 ms to 18 ms.
Over 96 commands in Python, Ruby, PHP and Node the median speedup is x4.8;
69 of those print only a version or help. Linux and macOS only. The first
call runs natively, and a tool's own work is not sped up.
License: MIT or Apache-2.0.
Code and measurements: https://github.com/anthonyGosme/speedrunner on GitHub
Anthony Gosme
[Python-announce] [ANN] speedrunner 0.4.10: a daemon that forks Python CLIs instead of starting them
- From
- Anthony Gosme <anth…@gmail.com>
- Reply-To
- pyth…@python.org
- Message-ID
- <CABRd=pALKuZPBPbigPXpwgmgCZW0m-OraUPDE0vdOYW_cFG=A…@mail.gmail.com>
- Date
- Newsgroups
- comp.lang.python.announce
Moderated This group is moderated.