maybe dataContent can run without lock
Open
- Dominant language
- Go
- Stars
- 2.1k
- Forks
- 281
- PR merge metrics
- No merged PRs in 30d
Description
As my project can ensure gengine run in single goroutine with local dataContent, but in pprof shows dataContent's lock cost too much.
Will gengine make any api on dataContent which can set dataCotent run without mutex.Lock?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating dataContent and the mutex involved in its execution path, then inspect how callers currently access it. Use the pprof observation from the issue to understand the locking cost; done would require a documented API choice for single-goroutine use without the mutex while retaining safe behavior for concurrent callers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend, performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100