diff options
author | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-10-15 18:25:03 (GMT) |
---|---|---|
committer | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-10-15 20:56:42 (GMT) |
commit | c5609a9247b965ea57db98607ad498a216e179d6 (patch) | |
tree | 510fdbba7b14c6454e61678d1d4179aac93c8db7 /bin | |
parent | db795de8e92da117070c45fb963273a6fa61c688 (diff) | |
download | Qt-c5609a9247b965ea57db98607ad498a216e179d6.zip Qt-c5609a9247b965ea57db98607ad498a216e179d6.tar.gz Qt-c5609a9247b965ea57db98607ad498a216e179d6.tar.bz2 |
QGAL: Add anchor layout vs nested linear layouts benchmark
Adding a benchmark to compare the use of three nested linear layouts
versus the use of a single anchor layout.
We also test two different anchor layout setups to achieve the
same visual result. In the first one we use the addCornerAnchors API
that, in the way it was used, adds reduntant anchors. The second uses
the basic addAnchor API to create only the essential anchors.
Currently the first setup is way slower than the second. That happens
because the redundant anchors create "zero-sized knots" in the graph,
that are not eaten by the simplification algorithm, thus requiring
the usage of the simplex solver.
Zero-sized knots are groups of three or more vertices that are linked
together by zero-sized anchors. In pratice, these vertices represent
the same place in the graph (remember, the distance between them is
zero), but to the simplification mechanism, they look like three
distinct ones.
Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions