Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 676
    • Issues 676
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

April 05-07 - Mercurial Paris Conference 2023 - One day of workshop dedicated to Heptapod and Mercurial usage and workflow. There are still places available for both workshops and talks!

  • PyPyPyPy
  • pypypypy
  • Merge requests
  • !307

improve _contains_ and _getitem_ performance almost 2x times using trick I've seen in py-lmdb to avoid key alloc/dup:

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Bitbucket Importer requested to merge bitbucket/merged-pr-307 into branch/default Feb 22, 2015
  • Overview 5
  • Commits 1
  • Pipelines 0
  • Changes 1

Created originally on Bitbucket by vvladymyrov (Volodymyr Vladymyrov)

Was already merged in Bitbucket before import, marked as merged by the import user

improve contains and getitem performance almost 2x times using trick I've seen in py-lmdb to avoid key alloc/dup: see https://github.com/dw/py-lmdb/blob/master/lmdb/cffi.py#L228-L230

My benchmark (11*50000 lookups against ~10k keys in db with 55k hit rate) on macbook pro 2.6Gh i5 shows improvement from 20 seconds to 10 seconds.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: bitbucket/merged-pr-307