https://bz.apache.org/bugzilla/show_bug.cgi?id=42248

--- Comment #52 from Chaitanya Bhatt <[email protected]> ---
(In reply to Philippe Mouawad from comment #50)
> URL: http://svn.apache.org/r1628260
> Log:
> Bug 42248 - Undo-redo support on Test Plan tree modification
> Disable feature by default as it is still in ALPHA MODE
> Mention this in changes.xml
> Bugzilla Id: 42248
> 
> Modified:
>     jmeter/trunk/bin/jmeter.properties
>     jmeter/trunk/src/core/org/apache/jmeter/gui/UndoHistory.java
>     jmeter/trunk/xdocs/changes.xml

Philippe,

It looks like Save#convertSubTree is the culprit for slowing down the clone
operation. Any idea why this blow code is slow?

 void convertSubTree(HashTree tree) {
        Iterator<Object> iter = new LinkedList<>(tree.list()).iterator();
        while (iter.hasNext()) {
            JMeterTreeNode item = (JMeterTreeNode) iter.next();
            convertSubTree(tree.getTree(item));
            TestElement testElement = item.getTestElement(); // requires
JMeterTreeNode
            tree.replaceKey(item, testElement);
        }
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to