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 xiang.zhang
Recipients alexandre.vassalotti, serhiy.storchaka, xiang.zhang
Date 2018-10-17.08:25:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1539764740.29.0.788709270274.issue34973@psf.upfronthosting.co.za>
In-reply-to
Content
I carefully read both the two PRs. The first one, easy to understand. The second one, I spend some time to figure out why the test doesn't crash, why we need to have reference count checks in two places and make some experiments to test in different cases, how the reference counts will be. I am afraid I have to repeat this procedure after some time when reading the code again. :-( And while in some cases the second approach increases performance. But in others cases it might hurt. Codes storing the array in a variable will go into the iterator branch.
History
Date User Action Args
2018-10-17 08:25:40xiang.zhangsetrecipients: + xiang.zhang, alexandre.vassalotti, serhiy.storchaka
2018-10-17 08:25:40xiang.zhangsetmessageid: <1539764740.29.0.788709270274.issue34973@psf.upfronthosting.co.za>
2018-10-17 08:25:40xiang.zhanglinkissue34973 messages
2018-10-17 08:25:40xiang.zhangcreate