| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| Quicksilver.jpg | 2021-05-26 | 139.3 kB | |
| diff-so-fancy | 2021-05-26 | 38.5 kB | |
| README.md | 2021-05-26 | 1.4 kB | |
| v1.4.1.tar.gz | 2021-05-26 | 49.0 kB | |
| v1.4.1.zip | 2021-05-26 | 66.7 kB | |
| Totals: 5 Items | 295.0 kB | 0 | |
This is the "QuickSilver" release as it's main focus is speed, speed, speed. Previously diff-so-fancy did a lot of shelling out to read the git config (5+ per invocation). This slowed down start up and was a personal pet peeve of mine. After much tweaking we've decreased the startup time by more than 60%.
Version 1.4.1
:perl third_party/cli_bench/cli_bench.pl '/tmp/diff-so-fancy-1.4.1 < /tmp/simple.diff'
...................................................
27 ms: %%%%%%%%%%%%%%%%%% (10.0%)
28 ms: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% (45.0%)
29 ms: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% (35.0%)
30 ms: %%%%%%%%%%%%%%%%%% (10.0%)
Ran '/tmp/diff-so-fancy-1.4.1 < /tmp/simple.diff' 50 times with average completion time of 28 ms
Version 1.4.0
:perl third_party/cli_bench/cli_bench.pl '/tmp/diff-so-fancy-1.4.0 < /tmp/simple.diff'
...................................................
71 ms: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% (22.5%)
72 ms: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% (40.0%)
73 ms: %%%%%%%%%%%%%%%%%%%%%%%%%% (12.5%)
74 ms: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% (25.0%)
Ran '/tmp/diff-so-fancy-1.4.0 < /tmp/simple.diff' 50 times with average completion time of 72 ms