##// END OF EJS Templates
bookmarks: cache reverse mapping (issue5868)...
bookmarks: cache reverse mapping (issue5868) I chose a simpler implementation. If the initial cost of building reverse mapping is significant, we'll have to move it under @propertycache. The nodemap could be a dict of sets, but I think keeping a sorted list is better since each node is likely to have zero/one bookmark. Micro-benchmark with 1001 bookmarks and 1001 revisions: $ for n in `seq 0 1000`; do touch $n; hg book book$n; hg ci -qAm$n; done $ hg bookmarks --time > /dev/null (orig) time: real 0.040 secs (user 0.050+0.000 sys 0.000+0.000) (new) time: real 0.040 secs (user 0.040+0.000 sys 0.010+0.000) $ hg log -T '{bookmarks}\n' --time > /dev/null (orig) time: real 0.160 secs (user 0.160+0.000 sys 0.000+0.000) (new) time: real 0.090 secs (user 0.100+0.000 sys 0.000+0.000)

File last commit:

r9419:3516a4e8 default
r37869:04ceb267 @26 default
Show More
README
11 lines | 416 B | text/plain | TextLexer
Martin Geisler
doc: update README with links to Docutils
r9172 Mercurial's documentation is kept in reStructuredText format, which is
a simple plain text format that's easy to read and edit:
jake@edge2.net
adding doc directory and files
r177
Martin Geisler
doc: update README with links to Docutils
r9172 http://docutils.sourceforge.net/rst.html
jake@edge2.net
adding doc directory and files
r177
Martin Geisler
doc: update README with links to Docutils
r9172 It's also convertible to a variety of other formats including standard
Martin Geisler
doc/README: simplify instructions
r9419 UNIX man page format and HTML. You'll need to install Docutils:
jake@edge2.net
adding doc directory and files
r177
Martin Geisler
doc: update README with links to Docutils
r9172 http://docutils.sourceforge.net/
jake@edge2.net
adding doc directory and files
r177
Martin Geisler
doc: update README with links to Docutils
r9172 Use the Makefile in this directory to generate the man and HTML pages.