diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2015-02-21 05:24:18 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2015-02-21 05:24:18 +0000 |
| commit | 2510fdec489527000de9b58b3a6b503ff4d90ad7 (patch) | |
| tree | bf0615204d345362c9749c77bb72c6df24b5aac3 /src | |
| parent | Fixes bug 1152657: "Paste selection with original+clone(s): Wrong placement ... (diff) | |
| download | inkscape-2510fdec489527000de9b58b3a6b503ff4d90ad7.tar.gz inkscape-2510fdec489527000de9b58b3a6b503ff4d90ad7.zip | |
Speed up ungrouping test, adding note as to why it is so slow.
(bzr r13933)
Diffstat (limited to 'src')
| -rw-r--r-- | src/object-test.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/object-test.h b/src/object-test.h index d6a9dbbd3..4fd3d67b5 100644 --- a/src/object-test.h +++ b/src/object-test.h @@ -178,7 +178,7 @@ public: Inkscape::XML::Document *xml_doc = node->document(); TS_TRACE("Benchmarking groups..."); - const size_t num_elements = 10000; + const size_t num_elements = 2000; Inkscape::XML::Node *new_group = xml_doc->createElement("svg:g"); Inkscape::GC::release(new_group); @@ -208,6 +208,7 @@ public: end = clock(); std::cout << "Took " << double(end - begin) / double(CLOCKS_PER_SEC) << " seconds to ungroup a <g> with " << num_elements << " elements\n"; + std::cout << " Note: sp_item_group_ungroup_handle_clones() is responsible\n for most of the time as it is linear in number of elements\n which results in quadratic behavior for ungrouping." << std::endl; begin = clock(); // Remove those elements |
