← Back to team overview

gtg-contributors team mailing list archive

Re: Refactorisation progress : It works (but it's slow)

 

Here are the results for my overly fast (Xeon quad core) work machine
on the same dataset. Same conclusions:

   Ordered by: cumulative time
   List reduced from 1075 to 15 due to restriction <15>

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        1    0.000    0.000    4.609    4.609 <string>:1(<module>)
        1    0.000    0.000    4.609    4.609
/home/rousseau/workspace/gtg/gtg-refactor/GTG/gtg.py:91(main)
        1    0.000    0.000    4.436    4.436
/home/rousseau/workspace/gtg/gtg-refactor/GTG/core/manager.py:49(show_browser)
        1    0.000    0.000    4.222    4.222
/home/rousseau/workspace/gtg/gtg-refactor/GTG/taskbrowser/browser.py:1795(main)
        1    3.682    3.682    4.115    4.115 {gtk._gtk.main}
      244    0.004    0.000    0.309    0.001
/home/rousseau/workspace/gtg/gtg-refactor/GTG/taskbrowser/browser.py:1642(on_task_modified)
      244    0.003    0.000    0.261    0.001
/home/rousseau/workspace/gtg/gtg-refactor/GTG/taskbrowser/tagtree.py:53(update_tags_for_task)
     4032    0.036    0.000    0.246    0.000 {method 'row_changed' of
'gtk.TreeModel' objects}
        1    0.000    0.000    0.213    0.213
/home/rousseau/workspace/gtg/gtg-refactor/GTG/taskbrowser/browser.py:83(__init__)
     6822    0.044    0.000    0.170    0.000 {method 'get_value' of
'gtk.TreeModel' objects}
  752/733    0.003    0.000    0.132    0.000
/home/rousseau/workspace/gtg/gtg-refactor/GTG/taskbrowser/browser.py:788(tag_visible_func)
        1    0.000    0.000    0.125    0.125
/home/rousseau/workspace/gtg/gtg-refactor/GTG/taskbrowser/browser.py:525(_init_plugin_engine)
        1    0.000    0.000    0.125    0.125
/home/rousseau/workspace/gtg/gtg-refactor/GTG/core/plugins/engine.py:147(load_plugins)
     6844    0.006    0.000    0.124    0.000
/home/rousseau/workspace/gtg/gtg-refactor/GTG/taskbrowser/tagtree.py:82(on_get_value)
      800    0.032    0.000    0.117    0.000
/home/rousseau/workspace/gtg/gtg-refactor/GTG/core/tagstore.py:305(get_tasks_nbr)


On Thu, Feb 25, 2010 at 2:13 AM, Luca Invernizzi <invernizzi.l@xxxxxxxxx> wrote:
> My tags sidebar is completely empty. Is that not yet implemented or a bug?
> Here's my profiling (file attached).
>
>     693053 function calls (680786 primitive calls) in 13.574 CPU seconds
>
>   Ordered by: cumulative time
>   List reduced from 1731 to 20 due to restriction <20>
>
>   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
>        1    0.000    0.000   13.574   13.574 <string>:1(<module>)
>        1    0.000    0.000   13.574   13.574 {execfile}
>        1    0.000    0.000   13.574   13.574 gtg:28(<module>)
>        1    0.000    0.000   13.131   13.131 gtg.py:91(main)
>        1    0.000    0.000   11.790   11.790 manager.py:49(show_browser)
>        1    0.000    0.000   10.776   10.776 browser.py:1795(main)
>        1    9.308    9.308   10.393   10.393 {gtk._gtk.main}
>      195    0.003    0.000    0.963    0.005 cleanxml.py:98(savexml)
>        1    0.000    0.000    0.932    0.932 browser.py:83(__init__)
>     4491    0.062    0.000    0.840    0.000 {method 'get_value' of
> 'gtk.TreeModel' objects}
>      240    0.008    0.000    0.785    0.003 browser.py:1642(on_task_modified)
>        1    0.000    0.000    0.750    0.750
> browser.py:525(_init_plugin_engine)
>        1    0.001    0.001    0.750    0.750 engine.py:147(load_plugins)
>        2    0.000    0.000    0.749    0.374 __init__.py:160(save_datastore)
>      240    0.005    0.000    0.716    0.003
> tagtree.py:53(update_tags_for_task)
>      385    0.015    0.000    0.706    0.002 {method 'row_changed' of
> 'gtk.TreeModel' objects}
>       12    0.001    0.000    0.693    0.058 engine.py:40(__init__)
>      929    0.010    0.000    0.670    0.001 browser.py:788(tag_visible_func)
>        2    0.000    0.000    0.666    0.333 datastore.py:201(quit)
>        2    0.000    0.000    0.666    0.333 localfile.py:170(quit)
>
>
>  Ordered by: cumulative time
>   List reduced from 1731 to 9 due to restriction <0.0050000000000000001>
>
> Function                     was called by...
>                                 ncalls  tottime  cumtime
> <string>:1(<module>)         <-
> {execfile}                   <-       1    0.000   13.574  <string>:1(<module>)
> gtg:28(<module>)             <-       1    0.000   13.574  {execfile}
> gtg.py:91(main)              <-       1    0.000   13.131  gtg:28(<module>)
> manager.py:49(show_browser)  <-       1    0.000   11.790  gtg.py:91(main)
> browser.py:1795(main)        <-       1    0.000   10.776
> manager.py:49(show_browser)
> {gtk._gtk.main}              <-       1    9.308   10.393  browser.py:1795(main)
> cleanxml.py:98(savexml)      <-       2    0.000    0.002
> __init__.py:160(save_datastore)
>                                      2    0.000    0.666
> localfile.py:170(quit)
>                                    191    0.002    0.295  tagstore.py:164(save)
> browser.py:83(__init__)      <-       1    0.000    0.932
> manager.py:49(show_browser)
>
> _______________________________________________
> Mailing list: https://launchpad.net/~gtg-contributors
> Post to     : gtg-contributors@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~gtg-contributors
> More help   : https://help.launchpad.net/ListHelp
>
>



-- 
Bertrand Rousseau



References