Global Interpreter Lock review
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Refactor
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- api, cryptography
Research direction
Review the pybind11 GIL documentation linked in the issue, then inspect the project's Python bindings to determine which operations are safe without the lock. The work is done when the safe bindings are identified and use py::call_guardpybind11::gil_scoped_release() where appropriate.
Written by the indexing model from the issue text.
Description
Right now, for all the bindings, we always hold the Global Interpreter Lock(GIL)
https://pybind11.readthedocs.io/en/stable/advanced/misc.html#gil
This prevents our code from being run from multiple Python threads.
We should investigate which bindings are working safe without the lock, adding py::call_guardpybind11::gil_scoped_release() to them.
- Dominant language
- C++
- Stars
- 1k
- Forks
- 175
- Avg merge
- 6d 12h
- Merged PRs (30d)
- 5
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.
More from OpenMined/TenSEAL
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
Type: Question :grey_question:
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Type: Question :grey_question:
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Type: Question :grey_question:
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Type: Improvement :chart_with_upwards_trend:
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in OpenMined/TenSEAL
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gazebosim/gz-sensors#662 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LadybirdBrowser/ladybird#12123 ·