summaryrefslogtreecommitdiff
path: root/addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2011-03-15 19:10:19 +0100
committerOlivier Dony <odo@openerp.com>2011-03-15 19:10:19 +0100
commit17ebdeb565ed4f1642f0928c3e80182864a4c92d (patch)
tree99ef19a8f7edb8a2e936d03b227bb2890c4a17a1 /addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php
parent092cbbbd012e8c04e76767b8741d7e68ab1d33a8 (diff)
[FIX] tools.graph: stop useless recursions to make graph_get() faster
In some cases (depending on the kind of graph being rendered), the recursive processing could lead to timings of 1 minute per call to ir.ui.view.graph_get(), even for a relatively small number of nodes (e.g. 10). By avoiding useless recursions in head_component() it goes down to a few ms. This patch also adds str() wrappers for __str__ and printing of nodes labels, which are not necessarily strings (they are often integers) bzr revid: odo@openerp.com-20110315181019-3pi3j0ojg33wtv3z
Diffstat (limited to 'addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php')
0 files changed, 0 insertions, 0 deletions