Project

General

Profile

Actions

bug #9147

closed

Use StringBuilder in CdmUtils.concat() to avoid performance penalties

Added by Andreas Kohlbecker almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
New
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal
Found in Version:

Description

Use String.join() or one of the org.apache.commons.lang3.StringUtils.join(..) methods instead. These methods are making explicit use of the StringBuffer class. CdmUtils.concat() can not be optimized by the jit, so for each string item the new String object needs to be extended to new length, which is known to be a performance penalty.

The CdmUtils.concat() methods have been deprecated now.

Actions

Also available in: Atom PDF