annotate templates/error-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 686bf56c17d0
children 783220e5d2d1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1572
385b8872b8e3 [hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
1 #header#
1776
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
2 <title>#repo|escape#: Error</title>
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
3 <link rel="alternate" type="application/rss+xml"
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
4 href="?cmd=changelog;style=rss" title="RSS feed for #repo|escape#">
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
5 </head>
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
6 <body>
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
7
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
8 <div class="page_header">
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
9 <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> / error
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
10 </div>
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
11
1572
385b8872b8e3 [hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
12 <div class="page_nav">
1776
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
13 <a href="?cmd=summary;style=gitweb">summary</a> | <a href="?cmd=changelog;style=gitweb">changelog</a> | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a><br/>
1572
385b8872b8e3 [hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
14 </div>
385b8872b8e3 [hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
15
385b8872b8e3 [hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
16 <div>
385b8872b8e3 [hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
17 <br/>
1776
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
18 <i>An error occured while processing your request</i><br/>
1572
385b8872b8e3 [hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
19 <br/>
385b8872b8e3 [hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
20 </div>
385b8872b8e3 [hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
21
385b8872b8e3 [hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
22 #footer#