| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| } | ||
|
|
||
| static PyObject * | ||
| bytes_slice_subscr(PyObject *lhs, PyObject *rhs) |
There was a problem hiding this comment.
The implementation here is seems copied from bytes_subscript (in byteobject.c) and still has a large overlap. Can you refactor the bytes_subscript into multiple methods so that the method here only becomes a very thin wrapper?
Sorry, something went wrong.
There was a problem hiding this comment.
I am not sure we actually need this specialization. Is there any metrics that that this operation is executed frequently in performance benchmark.
We can add tons of specialization it we want, but IIUC, we just pick few of them.
Sorry, something went wrong.
I agree we should limit the number of specializations. The bytes indexing seems worthwhile atm, the bytes slicing not so much. Another option: reconsider an extension mechanism. It was implemented once and reverted (because of a python release date and some technical worries): #133395. If we can get similar performance improvements with the extension mechanism, when we can leave which ops to specialize to the user and outside cpython. |
Sorry, something went wrong.
Documentation build overview26 files changed · ± 26 modified ± Modified |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The following was generated by Codex:
Results: