##// END OF EJS Templates
hgweb: compute changeset parents and children for log pages lazily...
hgweb: compute changeset parents and children for log pages lazily Log pages, i.e. changelog, filelog and search results page computed children and parents for each changeset shown, because spartan hgweb style shows this info. Turns out, computing all this is heavy and also unnecessary for log pages in all other hgweb styles. Luckily, templates allow an easy way to do computations on demand: just pass the heavy part of code as a callable and it will be only called when needed. Here are some benchmarks on the mercurial repository (best of 3): time wget http://127.0.0.1:8021/ before: 0m0.050s after: 0m0.040s time wget http://127.0.0.1:8021/?revcount=960 before: 0m1.164s after: 0m0.389s time wget http://127.0.0.1:8021/log/tip/mercurial/commands.py before: 0m0.047s after: 0m0.042s time wget http://127.0.0.1:8021/log/tip/mercurial/commands.py?revcount=960 before: 0m0.830s after: 0m0.434s

File last commit:

r26119:65d2538a stable
r26894:41957e50 default
Show More
help.wxs
35 lines | 1.2 KiB | text/plain | TextLexer
Adrian Buehlmann
wix: refactor and new guids.wxi
r10828 <?xml version="1.0" encoding="utf-8"?>
Adrian Buehlmann
contrib/wix: switch *.wxs files to LF eol
r10513 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
Adrian Buehlmann
wix: refactor and new guids.wxi
r10828
<?include guids.wxi ?>
Steve Borho
wix: add support for x64 native MSI packages
r13042 <?include defines.wxi ?>
Adrian Buehlmann
wix: refactor and new guids.wxi
r10828
<Fragment>
<DirectoryRef Id="INSTALLDIR">
<Directory Id="helpdir" Name="help" FileSource="$(var.SourceDir)">
Steve Borho
wix: add support for x64 native MSI packages
r13042 <Component Id="helpFolder" Guid="$(var.helpFolder.guid)" Win64='$(var.IsX64)'>
Adrian Buehlmann
wix: refactor and new guids.wxi
r10828 <File Name="config.txt" KeyPath="yes" />
<File Name="dates.txt" />
<File Name="diffs.txt" />
<File Name="environment.txt" />
<File Name="extensions.txt" />
Steve Borho
wix: catch up with more added files...
r14819 <File Name="filesets.txt" />
Steve Borho
wix: pick up new help topics added between 1.5 and 1.6...
r11491 <File Name="glossary.txt" />
Steve Borho
wix: catch up with more added files...
r14819 <File Name="hgignore.txt" />
Steve Borho
wix: pick up new help topics added between 1.5 and 1.6...
r11491 <File Name="hgweb.txt" />
Steve Borho
wix: add new merge-tools.txt help text
r12790 <File Name="merge-tools.txt" />
Adrian Buehlmann
wix: refactor and new guids.wxi
r10828 <File Name="multirevs.txt" />
<File Name="patterns.txt" />
Steve Borho
wix: add phases help text and two more translations (issue 3288)
r16220 <File Name="phases.txt" />
Adrian Buehlmann
wix: refactor and new guids.wxi
r10828 <File Name="revisions.txt" />
Steve Borho
wix: pick up new help topics added between 1.5 and 1.6...
r11491 <File Name="revsets.txt" />
Matt Harbison
wix: avoid an abort with 'hg help -k foo'...
r26119 <File Name="scripting.txt" />
Steve Borho
wix: add subrepos help text
r12830 <File Name="subrepos.txt" />
Adrian Buehlmann
wix: refactor and new guids.wxi
r10828 <File Name="templates.txt" />
<File Name="urls.txt" />
</Component>
</Directory>
</DirectoryRef>
</Fragment>
Adrian Buehlmann
contrib/wix: switch *.wxs files to LF eol
r10513 </Wix>