Skip to content

ctypes: Speed up find_library() on Linux by 500% #55467

@jonashaag

Description

@jonashaag
mannequin
BPO 11258
Nosy @theller, @pitrou, @vapier, @jonashaag
Files
  • faster-find-library1.diff: does all filtering in Python (more I/O)
  • faster-find-library2.diff: Pre-filters ldconfig's output using grep (less I/O but requires grep)
  • faster-find-library1-py3k.diff
  • faster-find-library1-py3k-with-escaped-name.diff: with re.escape(name) as suggested by Antoine Pitrou
  • faster-find-library1-py3k-with-escaped-name-try2.diff
  • 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 = None
    closed_at = <Date 2011-04-24.14:20:47.375>
    created_at = <Date 2011-02-20.16:03:58.470>
    labels = ['ctypes', 'performance']
    title = 'ctypes: Speed up find_library() on Linux by 500%'
    updated_at = <Date 2011-04-24.22:18:57.382>
    user = 'https://github.com/jonashaag'

    bugs.python.org fields:

    activity = <Date 2011-04-24.22:18:57.382>
    actor = 'Arfrever'
    assignee = 'none'
    closed = True
    closed_date = <Date 2011-04-24.14:20:47.375>
    closer = 'pitrou'
    components = ['ctypes']
    creation = <Date 2011-02-20.16:03:58.470>
    creator = 'jonash'
    dependencies = []
    files = ['20808', '20809', '20810', '20874', '20935']
    hgrepos = []
    issue_num = 11258
    keywords = ['patch']
    message_count = 17.0
    messages = ['128910', '128911', '128912', '128913', '129313', '129315', '129512', '129514', '129627', '129630', '129638', '134025', '134309', '134310', '134352', '134354', '134355']
    nosy_count = 6.0
    nosy_names = ['theller', 'pitrou', 'vapier', 'Arfrever', 'jonash', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue11258'
    versions = ['Python 3.3']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions