Mercurial > hg
view mercurial/templates/raw/map @ 52178:bcd4962e0df9
rust-revlog: don't create an in-memory nodemap for filelogs from Python
Explanations inline.
Benchmarks from this change affect positively the only repo that showed this
being a problem:
```
### data-env-vars.name = mozilla-try-2024-03-26-ds2-pnm
# benchmark.name = hg.command.cat
# bin-env-vars.hg.flavor = rust
# bin-env-vars.hg.py-re2-module = default
# benchmark.variants.files = all-root
# benchmark.variants.output = plain
# benchmark.variants.rev = tip
default: 62.848869 ~~~~~
before-this-patch: 58.113051 (-7.54%, -4.74)
this-patch: 57.407533 (-8.66%, -5.44)
### data-env-vars.name = mozilla-try-2024-03-26-ds2-pnm
# benchmark.name = hg.command.log
# bin-env-vars.hg.flavor = rust
# bin-env-vars.hg.py-re2-module = default
# benchmark.variants.limit-rev = 10
# benchmark.variants.patch = yes
# benchmark.variants.rev = none
default: 3.173532 ~~~~~
before-this-patch: 3.543591 (+11.66%, +0.37)
this-patch: 3.297235 (+3.90%, +0.12)
```
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Wed, 31 Jul 2024 13:35:54 +0200 |
parents | 47aea60d114d |
children |
line wrap: on
line source
default = 'shortlog' shortlog = "'raw' is not a browsable style" changelog = changelog.tmpl changelogentry = logentry.tmpl search = search.tmpl mimetype = 'text/plain; charset={encoding}' header = '' footer = '' changeset = changeset.tmpl difflineplus = '{line}' difflineminus = '{line}' difflineat = '{line}' diffline = '{line}' changesetparent = '# Parent {node}' changesetchild = '# Child {node}' filenodelink = '' filenolink = '' fileline = '{line}' diffblock = '{lines}' filediff = filediff.tmpl fileannotate = fileannotate.tmpl annotateline = '{author|user}@{rev}: {line}' manifest = manifest.tmpl direntry = 'drwxr-xr-x {basename}\n' fileentry = '{permissions|permissions} {size} {basename}\n' index = index.tmpl notfound = notfound.tmpl error = error.tmpl indexentry = '{url}\n' tags = '{entries%tagentry}' tagentry = '{tag} {node}\n' bookmarks = '{entries%bookmarkentry}' bookmarkentry = '{bookmark} {node}\n' branches = '{entries%branchentry}' branchentry = '{branch} {node} {status}\n' graph = graph.tmpl graphnode = graphnode.tmpl graphedge = graphedge.tmpl bookmarkname = 'bookmark: {name}\n' branchname = 'branch: {name}\n' tagname = 'tag: {name}\n'