cloudflare / cloudflare/ahocorasick
The memory usage is very high
Open
- Dominant language
- Go
- Stars
- 727
- Forks
- 108
- PR merge metrics
- No merged PRs in 30d
Description
This module is very excellent and queries quickly. When I used it, I found that if there are too many elements in the slice, it will cause a rapid increase in memory usage. The resources on the server are very valuable, and I hope the author can improve it;
Contributor guide
Research direction
No file or test is named in the issue. Start by locating the slice-handling and matching entry points in this Go implementation, then reproduce memory growth with a large slice and measure it. Done means memory usage is substantially reduced or bounded for large inputs, with a regression test covering the case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100