diff options
author | R. Tyler Ballance <tyler@monkeypox.org> | 2009-10-12 21:48:58 -0700 |
---|---|---|
committer | R. Tyler Ballance <tyler@monkeypox.org> | 2009-10-12 23:15:20 -0700 |
commit | 6c3c427355c8074116884ebaef5dc73898dfcf1d (patch) | |
tree | 812d1d3ac781d2e7fc443a1211848ca9861ec391 /BUGS | |
parent | c8caedc6222e22420a4d7fd433a0cfc43fca3a3b (diff) | |
download | python-cheetah-6c3c427355c8074116884ebaef5dc73898dfcf1d.tar.gz |
Remove unnecessary dir()/set() calls in Template.__init__()
When running cheetah.Tests.Performance.DynamicMethodCompilationTest
with 100000 iterations set, Template.__init__() is the most performance
sensitive call.
Prior to this commit:
ncalls tottime percall cumtime percall filename:lineno(function)
100000 12.558 0.000 15.274 0.000 Template.py:1025(__init__)
After this commit:
ncalls tottime percall cumtime percall filename:lineno(function)
100000 1.263 0.000 3.541 0.000 Template.py:1025(__init__)
That code need not execute every time __init__ is called
Diffstat (limited to 'BUGS')
0 files changed, 0 insertions, 0 deletions