[issue32492] C Fast path for namedtuple's property/itemgetter pair

2019-02-16 Thread Ned Deily
Change by Ned Deily : -- nosy: -ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2019-02-16 Thread miss-islington
miss-islington added the comment: New changeset 63fa1cfece4912110ce3a0ff11fb3ade3ff5e756 by Miss Islington (bot) (Raymond Hettinger) in branch 'master': bpo-32492: Add missing whatsnew entries for itemgetter and namedtuple (GH-11897) https://github.com/python/cpython/commit/63fa1cfece4912110c

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2019-02-16 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +11924 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-12-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 052b2dfdc967a8c061ff9561534e905009b88b8c by Serhiy Storchaka in branch 'master': bpo-32492: Tweak _collections._tuplegetter. (GH-11367) https://github.com/python/cpython/commit/052b2dfdc967a8c061ff9561534e905009b88b8c -- ___

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue35619. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are few post-commit tweaks in PR 11367: * Removed the docstrings cache. I have not found significant difference, but this make the code simpler. * Improved tests. Merged test_doc_writable and test_namedtuple_can_mutate_doc_of_descriptors_independentl

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-12-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10701, 10702, 10703 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-12-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10701 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-12-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10701, 10702 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-12-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-12-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 3f5fc70c6213008243e7d605f7d8a2d8f94cf919 by Raymond Hettinger (Pablo Galindo) in branch 'master': bpo-32492: 1.6x speed up in namedtuple attribute access using C fast-path (#10495) https://github.com/python/cpython/commit/3f5fc70c6213008243e

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -9755 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -9756 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +9754, 9755 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +9754, 9755, 9756 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +9754 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-05-16 Thread Ned Deily
Ned Deily added the comment: Deferred to 3.8 -- priority: deferred blocker -> versions: -Python 3.7 ___ Python tracker ___ ___ Pyt

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-01-29 Thread Ned Deily
Ned Deily added the comment: OK, it would be nice to get this in and the risk seems relatively low. Good luck! -- priority: normal -> deferred blocker versions: +Python 3.8 ___ Python tracker __

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-01-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Ned, I don't have time to finish this before 3.7b1. Will you approve for inclusion in 3.7b2? This isn't a user visible feature. It's goal is to bring named tuple attribute lookup performance up to parity with regular classes using __slots__. --

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-01-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, right. property already is hardy optimized, and specialized version of itemgetter gives only around 35% of maximal speed up. -- ___ Python tracker

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-01-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Joe Jevnik at already worked through attempts optimize property/itemgetter. There isn't much fruit left there. What I've outlined here should be several times faster. The code will end-up being very similar to the __get__ for member objects which is cur

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-01-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Alternatively we could consider the way of optimizing property or itemgetter (or both). This may be more complex solution, but if the added complexity is not too large, this solution may be more preferable because it will speed up not only namedtuple.

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-01-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +4968 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-01-04 Thread Raymond Hettinger
New submission from Raymond Hettinger : Attribute access for named tuples can be made as fast as attribute access of instances of classes with slots. All that is needed is a C subclass of property with it own __get__ that directly look's up the tuple field using PyTuple_GET_ITEM using an inde