diff options
author | silverwind <me@silverwind.io> | 2020-03-09 01:11:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-08 21:11:39 -0300 |
commit | 11f7fc5621629624034916b118b4b4ef368f8418 (patch) | |
tree | 664474cb3f1772bd132aca6126818601ace15e5e /modules/git/tree_blob.go | |
parent | 8a0da9ea78ac5412e594ca47eb183a53bbb36862 (diff) | |
download | gitea-11f7fc5621629624034916b118b4b4ef368f8418.tar.gz gitea-11f7fc5621629624034916b118b4b4ef368f8418.zip |
Use whitelist to find go files, run find only once (#10594)
- Use a whitelist-based approach to find *.go files so we can use
standard find syntax. Also included is a change that files no
longer pass a leading './' which should help performance further.
- Instead of running `find` multiple times in make because of the
lazy evaluation, run it only once and add the bindata files when
the bindata tag is present
This is another huge speedup on my machine of around 2000%.
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'modules/git/tree_blob.go')
0 files changed, 0 insertions, 0 deletions