view templates/changelog-gitweb.tmpl @ 2079:ee96ca273f32

New lazy index code for revlogs. This tunes for large repositories. It does not read the whole index file in one big chunk, but tries to buffer reads in more reasonable chunks instead. Search speeds are improved in two ways. When trying to find a specific sha hash, it searches from the end of the file backward. More recent entries are more likely to be relevant, especially the tip. Also, this can load only the mapping of nodes to revlog index number. Loading the map uses less cpu (no struct.unpack) and much less memory than loading both the map and the index. This cuts down the time for hg tip on the 80,000 changeset kernel repo from 1.8s to 3.69s. Most commands the pull a single rev out of a big index get roughly the same benefit. Commands that read the whole index are not slower.
author mason@suse.com
date Tue, 04 Apr 2006 16:47:12 -0400
parents 4b5725a4a0a6
children 8a798185809d
line wrap: on
line source

#header#
<title>#repo|escape#: Changelog</title>
<link rel="alternate" type="application/rss+xml"
   href="?cmd=changelog;style=rss" title="RSS feed for #repo|escape#">
</head>
<body>

<div class="page_header">
<a href="http://www.selenic.com/mercurial/" title="Mercurial"><div style="float:right;">Mercurial</div></a><a href="?cmd=summary;style=gitweb">#repo|escape#</a> / changelog
</div>

<form action="#">
<div class="search">
<input type="hidden" name="repo" value="#repo|escape#"  />
<input type="hidden" name="style" value="gitweb"  />
<input type="hidden" name="cmd" value="changelog"  />
<input type="text" name="rev"  />
</div>
</form>
</div>

<div class="page_nav">
<a href="?cmd=summary;style=gitweb">summary</a> | changelog | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a><br/>
<br/>
#changenav%naventry#<br/>
</div>

#entries%changelogentry#

<div class="page_nav">
#changenav%naventry#<br/>
</div>

#footer#