alpha
Login
or
Join now
boltless.me
/
zoekt
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
fork of https://github.com/sourcegraph/zoekt
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
zoekt
/
query
/
at
282a251a1d2d8d2293e8b0cce12b5b3f208ab12b
11 files
Julie Tibshirani
Remove redundant phrase boost logic
2y ago
b4193c29
bits.go
Add support for Magik and PKl languages that are not handled by Linguist (#790) Add fallbacks for languages not supported yet by linguist or go-enry
2 years ago
marshal.go
query: introduce FileNameSet (#482) Sourcegraph's new hybrid searcher sends around large ORs of filenames to search for. FileNameSet provides an efficient implementation to transport and query these sets of filenames. We include an efficient gob implementation based on previous work around encoding a more complicated map of strings. Test Plan: Added unit tests. Additionally, updated sourcegraph to use this implementation and ran its tests.
3 years ago
marshal_test.go
query: introduce FileNameSet (#482) Sourcegraph's new hybrid searcher sends around large ORs of filenames to search for. FileNameSet provides an efficient implementation to transport and query these sets of filenames. We include an efficient gob implementation based on previous work around encoding a more complicated map of strings. Test Plan: Added unit tests. Additionally, updated sourcegraph to use this implementation and ran its tests.
3 years ago
parse.go
Add support for Magik and PKl languages that are not handled by Linguist (#790) Add fallbacks for languages not supported yet by linguist or go-enry
2 years ago
parse_test.go
query: parse support for `fork:` and `public:` (#550) Add support for parsing queries for zoekt.fork and zoekt.public.
3 years ago
query.go
all: remove gob and SSE rpc endpoints (#758) We now only consume zoekt via gRPC at Sourcegraph and I doubt anyone uses the old endpoints. This will have one required update in sourcegraph, and that is to use SenderFunc from the main zoekt package rather than from the now deleted stream package.
2 years ago
query_proto.go
all: remove gob and SSE rpc endpoints (#758) We now only consume zoekt via gRPC at Sourcegraph and I doubt anyone uses the old endpoints. This will have one required update in sourcegraph, and that is to use SenderFunc from the main zoekt package rather than from the now deleted stream package.
2 years ago
query_proto_test.go
all: gofumpt -l -w . gofumpt is a stricter gofmt. I took a look at the changes and in general they are nice. I don't think we need to enforce the use of gofumpt, but I like the idea of running it every once in a while. Test Plan: go test ./...
2 years ago
query_test.go
query: fix expandFileContent (#483) This fixes a bug where if s.FileName and s.Content were TRUE, we didn't expand and the resulting matchTree was implicitly matching filenames only. Now we match content and filenames if s.Filename == s.Content.
3 years ago
regexp.go
all: use a faster vendored regexp/syntax/Regexp.String (#753) We replace all calls to Regexp.String with a vendored version which is faster. go1.22 introduced a commit which "minimizes" the string returned by Regexp.String(). Part of what it does is run enumerate through literals runes in your string to see calculate flags related to unicode and case sensitivity. This can be quite slow, but is made worse by the fact we call it per shard per regexp in your query.Q to construct the matchtree. Currently Regexp.String() represents 40% of CPU time on sourcegraph.com. Before go1.22 it was ~0%. Note: This is a temporary change to resolve the issue. I have a deeper change to make this less clumsy. Note: In one place we remove the use of string by relying on Regexp.Equal instead. Test Plan: go test
2 years ago
regexp_test.go
all: use a faster vendored regexp/syntax/Regexp.String (#753) We replace all calls to Regexp.String with a vendored version which is faster. go1.22 introduced a commit which "minimizes" the string returned by Regexp.String(). Part of what it does is run enumerate through literals runes in your string to see calculate flags related to unicode and case sensitivity. This can be quite slow, but is made worse by the fact we call it per shard per regexp in your query.Q to construct the matchtree. Currently Regexp.String() represents 40% of CPU time on sourcegraph.com. Before go1.22 it was ~0%. Note: This is a temporary change to resolve the issue. I have a deeper change to make this less clumsy. Note: In one place we remove the use of string by relying on Regexp.Equal instead. Test Plan: go test
2 years ago