typelevel / typelevel/cats-effect
Optimize `LocalQueue` on Native
Open
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 2.2k
- Forks
- 576
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 18
Description
- Replace
@volatilewith loads/stores with precise memory orderings - Introduce padding via
@alignto avoid false sharing
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Native implementation of LocalQueue and reading how its shared state is accessed. Determine the relevant memory-ordering changes and where @align padding belongs, then run the existing LocalQueue or Native test suite. Done means the queue uses precise loads/stores and avoids the identified false sharing without changing its behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- performance
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100