ZipFile / ZipFile/python-sonyflake-turbo
Lock-free implementation
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Python
- Stars
- 6
- Forks
- 0
- Avg merge
- 1h 40m
- Merged PRs (30d)
- 1
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
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.
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.
Assessment
- Tech stack
- c, python
- Domain
- backend, performance
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100