Issue 47199: multiprocessing: micro-optimize Connection.send_bytes() method - Python tracker
Python Home About News Documentation Downloads Community Foundation Developer's Guide Issue Tracker Issues Search Random Issue Summaries Issues with patch Easy issues Stats User Administration User List Committer List Help Tracker Documentation Tracker Development Report Tracker Problem Issue47199 ➜ This issue tracker has been migrated to GitHub , and is currently read-only . For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on 2022-04-02 06:28 by malin , last changed 2022-04-11 14:59 by admin . Pull Requests URL Status Linked Edit PR 32247 open malin , 2022-04-02 06:29 Messages (1) msg416538 - (view) Author: Ma Lin (malin) * Date: 2022-04-02 06:28 `bytes(m)` can be replaced by memoryview.cast('B'), then no need for data copying. m = memoryview(buf) # HACK for byte-indexing of non-bytewise buffers (e.g. array.array) if m.itemsize > 1: m = memoryview(bytes(m)) n = len(m) https://github.com/python/cpython/blob/v3.11.0a6/Lib/multiprocessing/connection.py#L190-L194 History Date User Action Args 2022-04-11 14:59:58 admin set github: 91355 2022-04-02 06:29:49 malin set keywords: + patch stage: patch review pull_requests: + pull_request30318 2022-04-02 06:28:23 malin create Supported by The Python Software Foundation , Powered by Roundup Copyright © 1990-2022, Python Software Foundation Legal Statements