view mercurial/templates/monoblue/index.tmpl @ 23497:5817f71c2336

obsstore: disable garbage collection during initialization (issue4456) Python garbage collection is triggered by container creation. So code that creates a lot of tuples tends to trigger GC a lot. We disable the gc during obsolescence marker parsing and associated initialization. This provides an interesting speedup (25%). Load marker function on my 58758 markers repo: before: 0.468247 seconds after: 0.344362 seconds The benefit is a bit less visible overall. With python2.6 on my system I see: after: 0.60 before: 0.53 The difference is probably explained by the delaying of a costly GC. (but there is still a win). Marking involved tuples, lists and dicts as ignorable by the garbage collector should give us more benefit. But this is another adventure. Thanks goes to Siddharth Agarwal for the lead.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 26 Nov 2014 16:58:31 -0800
parents 9409aeaafdc1
children 0c3c0f123a1a
line wrap: on
line source

{header}
    <title>{repo|escape}: Mercurial repositories index</title>
</head>

<body>
<div id="container">
    <div class="page-header">
        <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h1>
        <ul class="page-nav">
        </ul>
    </div>

    <table cellspacing="0">
        <tr>
            <td><a href="?sort={sort_name}">Name</a></td>
            <td><a href="?sort={sort_description}">Description</a></td>
            <td><a href="?sort={sort_contact}">Contact</a></td>
            <td><a href="?sort={sort_lastchange}">Last modified</a></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        {entries%indexentry}
    </table>
    <div class="page-footer">
        {motd}
    </div>

    <div id="powered-by">
        <p><a href="{logourl}" title="Mercurial"><img src="{staticurl|urlescape}{logoimg}" width=75 height=90 border=0 alt="mercurial"></a></p>
    </div>

    <div id="corner-top-left"></div>
    <div id="corner-top-right"></div>
    <div id="corner-bottom-left"></div>
    <div id="corner-bottom-right"></div>

</div>
</body>
</html>