ZipFile / ZipFile/python-sonyflake-turbo

Lock-free implementation

Open
#14 0 comments 0 reactions 0 assignees View on GitHub

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_next and sonyflake_next_n
  • robust multithreaded benchmark

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.