Some more cython optimizations ?
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
- Tech stack
- python
- Domain
- performance
Research direction
Start with ChunkedBuffer and the linked chunkedbuffer project, then inspect the annotated output for the _bufs_popleft and collections.deque examples. Compare the proposed Cython optimization changes against the current behavior and performance; done means the worthwhile optimizations are identified and validated without changing behavior.
Written by the indexing model from the issue text.
Description
While working on ChunkedBuffer:
https://github.com/tzickel/chunkedbuffer
I think it's for calling python methods which are already bound to a Python object, it's faster to do instead of (check the annotated output):
self._bufs_popleft(...)
this:
with cython.optimize.unpack_method_calls(False):
self._bufs_popleft(...)
^^- but it's better to leave it though for calling other stuff, like when calling an .find directly.
Also instead of:
self._bufs = collections.deque()
it's less code
from collections import deque
self._bufs = deque()
- Dominant language
- Cython
- Stars
- 38
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
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 MagicStack/py-pgproto
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
MagicStack/py-pgproto#31 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
MagicStack/py-pgproto#30 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
MagicStack/py-pgproto#24 · 1 comment ·
-
Tiny fix in hton.h Open
Difficulty 1/5 Under an hour Newbie friendliness 48/100
MagicStack/py-pgproto#6 ·
All issues in MagicStack/py-pgproto
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
mlcommons/mobile_app_open#1182 ·
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
type/automation type/performance
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
bug team:backend track:services-maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cowprotocol/services#4950 ·
-
enhancement new
Difficulty 2/5 1-3 hours Newbie friendliness 84/100