1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 14:14:25 +00:00
gitea/modules/indexer/code
zeripath f75a9b27b0
Speed up enry.IsVendor (#15213) (#15245)
Backport #15213

`enry.IsVendor` is kinda slow as it simply iterates across all regexps.
This PR ajdusts the regexps to combine them to make this process a
little quicker.

Related #15143

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-04-02 01:16:00 +02:00
..
bleve_test.go Support elastic search for code search (#10273) 2020-08-30 19:08:01 +03:00
bleve.go Speed up enry.IsVendor (#15213) (#15245) 2021-04-02 01:16:00 +02:00
elastic_search_test.go Fix bug on elastic search (#12811) 2020-09-12 20:31:52 +08:00
elastic_search.go Speed up enry.IsVendor (#15213) (#15245) 2021-04-02 01:16:00 +02:00
git.go Reduce calls to git cat-file -s (#14682) 2021-02-17 22:32:25 +01:00
indexer_test.go [Feature] add precise search type for Elastic Search (#12869) 2021-01-27 12:00:35 +02:00
indexer.go [Feature] add precise search type for Elastic Search (#12869) 2021-01-27 12:00:35 +02:00
search.go [Feature] add precise search type for Elastic Search (#12869) 2021-01-27 12:00:35 +02:00
wrapped.go [Feature] add precise search type for Elastic Search (#12869) 2021-01-27 12:00:35 +02:00