← Back to team overview

launchpad-dev team mailing list archive

Re: announcing pybars - handlebars for Python

 

On Tue, Feb 21, 2012 at 8:03 AM, James Westby <jw+debian@xxxxxxxxxxxxxxx> wrote:
> On Mon, 20 Feb 2012 17:17:22 +1300, Robert Collins <robertc@xxxxxxxxxxxxxxxxx> wrote:
>> bin/py -m timeit -s 'import pystache' -s 'source =
>> file("/home/robertc/source/launchpad/lp-branches/working/lib/lp/bugs/templates/buglisting.mustache",
>> "rb").read().decode("utf8")' -s 'import json' -s 'data =
>> json.loads(file("profdata", "rb").read().decode("utf8"))' -s 'render =
>> pystache.render' -s 'import pdb' 'render(source, data)'
>
> It looks like this is importing pdb, which could be skewing your
> numbers?

Nah, as John says its in the setup; I was debugging the template
difference was all :)

-Rob


References