Skip to content

operator.attrgetter slower than lambda after adding dotted names ability #54369

@tzot

Description

@tzot
mannequin
BPO 10160
Nosy @rhettinger, @terryjreedy, @pitrou, @alex
Files
  • so3940518.py: sample benchmark to verify speed of operator.attrgetter vs attribute getting using a lambda
  • issue10160.diff: (documentation, source, test) changes
  • issue10160-2.diff: newer version of (source, documentation, testing)
  • issue10160.diff: after fixing issues noted by Antoine Pitrou
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/pitrou'
    closed_at = <Date 2010-10-31.15:27:40.648>
    created_at = <Date 2010-10-21.00:10:18.520>
    labels = ['tests', 'library', 'performance']
    title = 'operator.attrgetter slower than lambda after adding dotted names ability'
    updated_at = <Date 2011-02-21.11:33:45.837>
    user = 'https://bugs.python.org/tzot'

    bugs.python.org fields:

    activity = <Date 2011-02-21.11:33:45.837>
    actor = 'tzot'
    assignee = 'pitrou'
    closed = True
    closed_date = <Date 2010-10-31.15:27:40.648>
    closer = 'pitrou'
    components = ['Library (Lib)', 'Tests']
    creation = <Date 2010-10-21.00:10:18.520>
    creator = 'tzot'
    dependencies = []
    files = ['19310', '19313', '19339', '19440']
    hgrepos = []
    issue_num = 10160
    keywords = ['patch']
    message_count = 14.0
    messages = ['119247', '119249', '119250', '119251', '119258', '119261', '119264', '119417', '119419', '120006', '120023', '120035', '120059', '128957']
    nosy_count = 5.0
    nosy_names = ['rhettinger', 'terry.reedy', 'tzot', 'pitrou', 'alex']
    pr_nums = []
    priority = 'low'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue10160'
    versions = ['Python 3.2']

    Metadata

    Metadata

    Assignees

    Labels

    performancePerformance or resource usagestdlibPython modules in the Lib dirtestsTests in the Lib/test dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions