[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search

CLDR Ticket #8908(accepted tools)

Opened 3 years ago

Last modified 3 years ago

Remove unnecessary object creation

Reported by: mark Owned by: googler
Component: util Data Locale:
Phase: rc Review:
Weeks: Data Xpath:

Description (last modified by mark) (diff)

Unnecessary object creation wastes cycles, both in the creation and in the garbage collection.

stringBuilder.append(source.substring(a, b));

should be:

stringBuilder.append(source, a, b);

The latter is roughly 200 times faster (with a quick&dirty measure, short strings).


Change History

comment:1 Changed 3 years ago by emmons

  • Status changed from new to accepted
  • Component changed from unknown to util
  • Priority changed from assess to medium
  • Phase changed from dsub to rc
  • Milestone changed from UNSCH to 29
  • Owner changed from anybody to googler
  • Type changed from unknown to tools

comment:2 Changed 3 years ago by mark

  • Description modified (diff)

comment:3 Changed 3 years ago by emmons

  • Milestone changed from 29 to upcoming

Auto move of all 29 -> upcoming


Add a comment

Modify Ticket

as accepted

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.