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): ```python self._bufs_popleft(...) ``` this: ```python 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 <bytearray instance>.find directly. Also instead of: ```python self._bufs = collections.deque() ``` it's less code ```python from collections import deque self._bufs = deque() ```
Activity
1st1 commentedon May 4, 2020
I think these are micro-optimizations and it's highly unlikely that they would show a detectable speedup.