From: SourceForge.net <no...@so...> - 2009-12-01 02:20:34
|
Feature Requests item #1557017, was opened at 2006-09-12 10:26 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=365278&aid=1557017&group_id=15278 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Matthias Schmidt (cmschmidt) Assigned to: Kent Beck (kbeck) Summary: performance optimization for Assert Initial Comment: I've made JUnit's central class Assert a tiny bit faster by doing two things: 1) Using StringBuilder instead of concatenating Strings for the error messages. StringBuilder is the thread unsafe brother of StringBuffer, introduced in Java 5. 2) Using the factory methods for numbers, e.g. "Double.valueOf(double)" instead of "new Double(double)". Quote from the javadoc: "If a new Double instance is not required, this method should generally be used in preference to the constructor Double(double), as this method is likely to yield significantly better space and time performance by caching frequently requested values." ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 2009-12-01 02:20 Message: This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: David Saff (dsaff) Date: 2009-11-16 17:52 Message: This tracker is being shut down. Please move this item to http://github.com/KentBeck/junit/issues ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=365278&aid=1557017&group_id=15278 |