Results for “java stringbuffer to string function example pdf site:bugs.java.com”
bugs.java.com
Bug ID: JDK-6219959 StringBuffer.toString () innefficient in ...
This makes applications that repeadedly call sb.toString () on an large unchanged StringBuffer extreemly slow. An example, we used to be able to parse and init a program in 600ms in 1.4.2 in 1.5 it takes over 4 minutes.
bugs.java.com
Bug ID: JDK-6294060 Use of substring() causes memory leak
The behaviour can even be "cloaked" by using java.util.regex classes: Matcher.group() etc. which seem to use substring internally for String extraction. This way it's nearly impossible to detect the memory leak. This behaviour is totally independent of OS, Java Version, VM type etc.
bugs.java.com
JDK-6650179 : StringBuilder.toString () and StringBuffer ...
JDK-6650179 : StringBuilder.toString () and StringBuffer.toString () optimization
bugs.java.com
Bug ID: JDK-6500646 Use Escape Analysis to optimize...
A common use of StringBuffer in Java programs is that a local StringBuffer object is used to build a character sequences which is then converted to a String. This conversion involves allocating a new char array and copying the StringBuffer's char array.
bugs.java.com
JDK-4834695 : RFE: StringBuffer and String.substring ...
Name: rmT116609 Date: 03/19/2003 A DESCRIPTION OF THE REQUEST : The VM is stressed too much by unnecessary copies of strings and substrings: 1) StringBuffer is explicitly optimized to support String concatenation, but it excessively uses the String.setShared () in case where it should not: if the StringBuffer is not fully used (this appears if ...
bugs.java.com
Bug ID: JDK-6304514 StringBuilder and StringBuffer need ...
These are some examples (not sure that they're all valid, but seem worth considering): a) The two constructors for String taking StringBuffer and StringBuilder respectively, could be collapsing into a single constructor taking a StringAssembler. b) There is a request to add a StringBuilder equivalent of StringWriter.
bugs.java.com
Bug ID: JDK-8218227 StringBuilder/StringBuffer constructor ...
JDK-8218227 : StringBuilder/StringBuffer constructor throws confusing NegativeArraySizeException