homepage

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.

Author vstinner
Recipients seberg, vstinner
Date 2020年12月28日.14:25:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609165532.7.0.395222226871.issue40522@roundup.psfhosted.org>
In-reply-to
Content
>_PyInterpreterState_GET():
> mov rax,QWORD PTR [rip+0x22a7dd] # 0x743118 <_PyRuntime+568>
> mov rax,QWORD PTR [rax+0x10]
While working on bpo-39465, I wrote PR 20767 to optimize _PyInterpreterState_GET(): single instruction instead of two:
* Add _PyRuntimeState.interp_current member: atomic variable
* _PyThreadState_Swap() sets _PyRuntimeState.interp_current
But I failed to measure any performance difference.
History
Date User Action Args
2020年12月28日 14:25:32vstinnersetrecipients: + vstinner, seberg
2020年12月28日 14:25:32vstinnersetmessageid: <1609165532.7.0.395222226871.issue40522@roundup.psfhosted.org>
2020年12月28日 14:25:32vstinnerlinkissue40522 messages
2020年12月28日 14:25:32vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /