about summary refs log tree commit diff
path: root/third_party/git/preload-index.c
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2021-03-04T11·29+0100
committersterni <sternenseemann@systemli.org>2021-03-05T11·07+0000
commit7af0fb10663009ab2a312c93198f5d83c7c5ff30 (patch)
treebd6712b00aa2888174bf2ecdfb8bd13a41a503a9 /third_party/git/preload-index.c
parent8ff14cacb69dce491c81a629595087525b455a3f (diff)
refactor(users/sterni/nix/string): don't calculate length for drop r/2267
Since nix ends the substring at the end of the string anyways we can
just statically use the largest nix integer as the length of the string.
According to my testing this it ever so slightly faster as well.

Change-Id: I64566e91c7b223f03dcebe3bc5710696dc4261bc
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2587
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'third_party/git/preload-index.c')
0 files changed, 0 insertions, 0 deletions