Lock-free implementation
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 38/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- backend, performance
Research direction
Start by reading the C extension module in sonyflake.c, especially sonyflake_next and sonyflake_next_n, and review how elapsed_time and combined_sequence are currently represented. Explore whether stdatomic.h can support the proposed shared state, then define completion around a lock-free implementation and a robust multithreaded benchmark.
Written by the indexing model from the issue text.
Description
<stdatomic.h> can be used in C extension module ("sonyflake.c"), elapsed_time and combined_sequence can be packed into a single atomic_uint. Bonus points:
- figuring out how to share same state for both
sonyflake_nextandsonyflake_next_n - robust multithreaded benchmark
- Dominant language
- Python
- Stars
- 6
- Forks
- 0
- Avg merge
- 1h 40m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
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.
More from ZipFile/python-sonyflake-turbo
-
PEP-803 support Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
enhancement good first issue
Difficulty 5/5 Over a week Newbie friendliness 35/100
All issues in ZipFile/python-sonyflake-turbo
Similar issues
-
area: harness bug status: needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Human-Agent-Society/reef#625 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
learningequality/kolibri#15351 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Name consistency Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
eellak/triplestore#65 · 1 comment ·