diff options
author | W. Trevor King <wking@drexel.edu> | 2010-01-20 14:24:51 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-01-20 14:24:51 -0500 |
commit | fdc203bdae26aecb475a03c3da17cd44ee376a9c (patch) | |
tree | 7ca39ef8cf4b10adeeb992f79f5fa0dc1a57a9ca /.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs | |
parent | 7e8237f5004a86be0bd90c77e0640cd265a61d72 (diff) | |
download | bugseverywhere-fdc203bdae26aecb475a03c3da17cd44ee376a9c.tar.gz |
Optimized BugDir.uuids, caching on-disk bug uuids.
Output of
python -m cProfile -o profile be list
python -c "import pstats; p=pstats.Stats('profile'); p.sort_stats('cumulative').print_stats()"
on my slow netbook before optimization:
ncalls tottime percall cumtime percall filename:lineno(function)
10290 0.417 0.000 10.832 0.001 libbe/bugdir.py:237(uuids)
after optimization:
105 0.063 0.001 0.250 0.002 libbe/bugdir.py:237(uuids)
The old generator produced many more calls than the new
implementation, but the number of calls was not the source of the
slowdown (data not shown ;).
Diffstat (limited to '.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs')
0 files changed, 0 insertions, 0 deletions