Changes

From Gramps

GEPS 016: Enhancing Gramps Processing Speed

249 bytes added, 11:03, 16 January 2020
Profiling
To interpret the stats, you must realize that the function calls reflect a hierarchical structure. This src/gramps.py uses the most time as it is the topmost program. So, you may have to go down quite a ways to see the lower-level functions that are actually responsible for the processing. For example, '''/home/dblank/gramps/trunk/src/gen/db/write.py:1349(commit_base)''' may be a function that could be speed up.
 
===Testing one module===
 
An alternative to make a profile on a gramps session is to test one section of an existing module.
 
<pre>import cProfile
pr = cProfile.Profile()
pr.enable()
# your code here
pr.disable()
pr.print_stats(sort='time')</pre>
====Additionnal tips====

Navigation menu