
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2018-12-26 00:26 byasvetlov, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 11318 | merged | asvetlov,2018-12-26 00:29 | |
| PR 11318 | merged | asvetlov,2018-12-26 00:29 | |
| PR 11324 | merged | miss-islington,2018-12-26 18:46 | |
| Messages (3) | |||
|---|---|---|---|
| msg332524 -(view) | Author: Andrew Svetlov (asvetlov)*![]() | Date: 2018-12-26 00:26 | |
Construction enums by-value (e.g. http.HTTPStatus(200)) performs two dict lookups: if value in cls._value2member_map_: return cls._value2member_map_[value]Changing the code to just return cls._value2member_map_[value]with catching KeyError can speedup the fast path a little. | |||
| msg332558 -(view) | Author: Ethan Furman (ethan.furman)*![]() | Date: 2018-12-26 18:45 | |
New changeset34ae04f74dcf4ac97d07c3e82eaf8f619d80cedb by Ethan Furman (Andrew Svetlov) in branch 'master':Speed-up building enums by value, e.g. http.HTTPStatus(200) (#11318)https://github.com/python/cpython/commit/34ae04f74dcf4ac97d07c3e82eaf8f619d80cedb | |||
| msg332562 -(view) | Author: Andrew Svetlov (asvetlov)*![]() | Date: 2018-12-26 20:48 | |
New changeset705b5998035739b1794a862123d3dc6e339a14d0 by Andrew Svetlov (Miss Islington (bot)) in branch '3.7':Speed-up building enums by value, e.g. http.HTTPStatus(200) (GH-11318) (GH-11324)https://github.com/python/cpython/commit/705b5998035739b1794a862123d3dc6e339a14d0 | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:09 | admin | set | github: 79766 |
| 2018-12-26 20:52:32 | asvetlov | set | keywords:patch,patch status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2018-12-26 20:48:58 | asvetlov | set | messages: +msg332562 |
| 2018-12-26 18:46:02 | miss-islington | set | pull_requests: +pull_request10587 |
| 2018-12-26 18:45:38 | ethan.furman | set | messages: +msg332558 |
| 2018-12-26 01:23:47 | rhettinger | set | keywords:patch,patch assignee:ethan.furman nosy: +ethan.furman |
| 2018-12-26 00:29:57 | asvetlov | set | keywords: +patch stage: patch review pull_requests: +pull_request10569 |
| 2018-12-26 00:29:55 | asvetlov | set | keywords: +patch stage: (no value) pull_requests: +pull_request10568 |
| 2018-12-26 00:26:24 | asvetlov | create | |