English | 简体中文
HTTP_PROXY
and HTTPS_PROXY
system proxies (handy for regulation area).Show pages for git commit
:
tldrx git commit
Update local cache(Required for the first time before showing official pages):
tldrx --update
Edit or create private page for git commit
:
tldrx -e git commit
For more:
tldrx --help
Assume you have rust cargo installed:
cargo install tldrx
Benchmarked in a Docker container(Dockerfile) on a GitHub Acions machine([2C-7GB-SSD])
using hyperfine
with 100 round against each client.
| Client [2022-10-05] | Build Flags | Mean [ms] | Min [ms] | Max [ms] | Relative |
| :----------------------------------------------------------- | :--------------- | ---------: | -------: | -------: | ----------: |
| outfieldr | -Drelease-safe
| 23.0 ± 2.6 | 18.5 | 36.6 | 1.00 |
| tldrx | --release
| 30.2 ± 3.0 | 25.5 | 43.0 | 1.32 ± 0.20 |
| tealdeer | --release
| 32.9 ± 3.5 | 27.3 | 45.4 | 1.43 ± 0.22 |
| tldr c client | -O3
| 76.8 ± 5.8 | 63.8 | 106.4 | 3.34 ± 0.45 |
P.S. Studies shows that response within 100ms
time frame human brain would treat it as an instantaneous reaction^3.
Recommendation here is chose a client base on the provided features that suits you while the response time is within 100ms
.
If you want more performance, build tldrx
as a static binary that would reduce the dynamic library load time.
The location of the configuration file .tldrxrc
varies by platform
~/.tldrxrc
~/.tldrxrc
%USERPROFILE%\.tldrxrc
Create one if not there.
.tldrxrc
[-]
option Optional.<+>
option Required only if that feature you want.```toml
officialpagesdir = "/path/to/official/tldr-pages"
privatepagesdir = "/path/to/private/tldr-pages"
platform = "linux"
sytled = "auto"
editor = "vi"
```
This project is dual-licensed under MIT license and MulanPSL-2.0 license. You can freely choose one or the other that suits you.