Bug 55065 - Useless processing in Spline3.converge()
Summary: Useless processing in Spline3.converge()
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.9
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2013-06-05 18:14 UTC by Adrian Nistor
Modified: 2013-07-11 20:21 UTC (History)
2 users (show)



Attachments
patch (533 bytes, patch)
2013-06-05 18:14 UTC, Adrian Nistor
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Nistor 2013-06-05 18:14:45 UTC
Created attachment 30400 [details]
patch

The problem appears in version 2.9 and in revision 1489981.  I
attached a one-line patch that fixes it.

In method "Spline3.converge", the loop from 0 to "_n" should break
immediately after "converge" is set to "false".  All the iterations
after "converge" is set to "false" do not perform any useful work
because the "if (converge)" statement will always evaluate to "false"
and the "true" branch will never be taken again for the remaining
iterations.
Comment 1 Philippe Mouawad 2013-06-05 18:59:51 UTC
Thanks for patch, applied.

Date: Wed Jun  5 18:59:09 2013
New Revision: 1490003

URL: http://svn.apache.org/r1490003
Log:
Bug 55065 - wasted work in Spline3.converge()
Bugzilla Id: 55065

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/Spline3.java
    jmeter/trunk/xdocs/changes.xml
Comment 2 Philippe Mouawad 2013-06-05 19:07:27 UTC
Date: Wed Jun  5 19:06:31 2013
New Revision: 1490009

URL: http://svn.apache.org/r1490009
Log:
Bug 55065 - wasted work in Spline3.converge()
Bug renaming
Bugzilla Id: 55065

Modified:
    jmeter/trunk/xdocs/changes.xml
Comment 3 The ASF infrastructure team 2022-09-24 20:37:54 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3138