Improve speed of word set generation
Open
enhancement
- Dominant language
- Shell
- Stars
- 4
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Using regex to split on whitespace is slow. Write benchmarks for current implementation and then optimize. Possible optimizations:
- Build set as `map[[]byte]struct{}` instead of `map[string]struct{}`
- Build set concurrently with multiple indices scanning text.
- (For SPDX data) Create index and persist to source at `go generate` time
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.