Changes between Version 1 and Version 2 of Ticket #13400, comment 22


Ignore:
Timestamp:
08/26/12 17:55:06 (7 years ago)
Author:
nbruin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13400, comment 22

    v1 v2  
    6262}}}
    6363but not that the NUMBER of calls here isn't much different, so it doesn't look like we're creating parents that much more often here (that would always show up in python profiles, right?) On the other hand, `lazy_attribute` has shown up, costing 5 seconds in total (and getting called a LOT), and those do tend to live in the category system, right?
     64
     65Ah, and I finally found what the slash means and what `primitive calls` means. Those are ''nonrecursive'' calls, i.e., for recursive functions the ''entry'' into the recursion. In particular
     66{{{
     67488462/247161    3.742    0.000    5.013    0.000 lazy_attribute.py:506(__get__)
     68}}}
     69means `488462` total calls, `247161` of which are primitive. Glancing over the code gives me the impression this code might indeed be looking up further attributes (there's an mro loop)
     70
     71I can imagine that these attributes take more time if they get called the first time on a parent, so perhaps this showing up IS an indication new parents are being made.