launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #09021
Re: announcing pybars - handlebars for Python
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2/20/2012 8:03 PM, James Westby 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?
>
> Thanks,
>
> James
>
It is under a "-s" so it is only done at startup. He could remove it,
but it shouldn't actually matter.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9CpDgACgkQJdeBCYSNAAPKnwCeO/WsoLX37hq4qqFAwfD2Kxez
dQUAn1idszOiwLEsWDLjGBOdojb/cAtT
=sWGf
-----END PGP SIGNATURE-----
References