bzr too slow
Erik Bågfors
zindar at gmail.com
Wed Jan 11 23:20:55 GMT 2006
> >
> > Here is the output from the profile on a new branch (this took a long
> > time, I went to lunch while waiting :) )
> >
>
> Thanks for doing it.
> Are you sure this is a new branch? Because the difference is 5.9s versus
> 5.8s, which doesn't seem significant.
I just redid it. Check this
: [bagfors at zyrgelkwyt]$ ; time bzr --profile status > /tmp/profile 2>&1
real 15m44.218s
user 10m21.370s
sys 3m57.539s
: [bagfors at zyrgelkwyt]$ ; cat /tmp/profile
576611 function calls (549060 primitive calls) in 6.357 CPU seconds
Ordered by: cumulative time
List reduced from 161 to 20 due to restriction <20>
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 6.357 6.357 commands.py:211(run_argv)
1 0.000 0.000 6.357 6.357 commands.py:542(ignore_pipe)
1 0.008 0.008 6.357 6.357 builtins.py:122(run)
1 0.001 0.001 5.899 5.899 status.py:27(show_status)
1 0.288 0.288 3.821 3.821 delta.py:144(compare_trees)
5419 0.090 0.000 2.824 0.001 branch.py:75(decorated)
10828 0.171 0.000 2.707 0.000
inventory.py:568(_read_tree_state) 4 0.207 0.052 1.363
0.341 xml5.py:114(_unpack_inventory)
2 0.000 0.000 1.136 0.568 status.py:131(list_paths)
24588 0.465 0.000 1.029 0.000 xml5.py:133(_unpack_entry)
1 0.040 0.040 1.012 1.012
workingtree.py:655(iter_conflicts) 5418 0.135 0.000 0.989
0.000 workingtree.py:908(unlock)
3 0.001 0.000 0.977 0.326 workingtree.py:181(__init__)
3 0.000 0.000 0.972 0.324
workingtree.py:810(read_working_inventory)
3 0.008 0.003 0.972 0.324 xml.py:53(read_inventory)
6148 0.037 0.000 0.954 0.000
workingtree.py:657(<generator expression>)
6148 0.036 0.000 0.916 0.000 workingtree.py:443(list_files)
32966/6148 0.545 0.000 0.880 0.000 workingtree.py:455(descend)
5414 0.331 0.000 0.796 0.000 hashcache.py:194(write)
29270 0.501 0.000 0.786 0.000 inventory.py:997(id2path)
so profile says 6 sec. Time says 15min
/Erik
More information about the bazaar
mailing list