Mercurial > hg
annotate mercurial/templates/rss/tagentry.tmpl @ 28306:1778770e1982
changelog: lazy decode description (API)
Currently, changelog reading decodes read values. This is wasteful
because a lot of times consumers aren't interested in some of these
values.
This patch changes description decoding to occur in changectx as
needed.
revsets reading changelog entries appear to speed up slightly:
revset #7: author(lmoscovicz)
plain
0) 0.906329
1) 0.872653
revset #8: author(mpm)
plain
0) 0.903478
1) 0.878037
revset #9: author(lmoscovicz) or author(mpm)
plain
0) 1.817855
1) 1.778680
revset #10: author(mpm) or author(lmoscovicz)
plain
0) 1.837052
1) 1.764568
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 27 Feb 2016 22:25:14 -0800 |
parents | 9409aeaafdc1 |
children |
rev | line source |
---|---|
1766
93f54a2b3864
tags-rss support; still shows tip
Peter van Dijk <peter@dataloss.nl>
parents:
diff
changeset
|
1 <item> |
8428
5ccca71775e1
atom/rss: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
3423
diff
changeset
|
2 <title>{tag|escape}</title> |
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
9999
diff
changeset
|
3 <link>{urlbase}{url|urlescape}rev/{node|short}</link> |
8428
5ccca71775e1
atom/rss: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
3423
diff
changeset
|
4 <description><![CDATA[{tag|strip|escape|addbreaks}]]></description> |
5ccca71775e1
atom/rss: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
3423
diff
changeset
|
5 <pubDate>{date|rfc822date}</pubDate> |
1766
93f54a2b3864
tags-rss support; still shows tip
Peter van Dijk <peter@dataloss.nl>
parents:
diff
changeset
|
6 </item> |