Request for Review : 6553074 : String{Buffer, Builder}.indexOf(Str, int) contains unnecessary allocation (original) (raw)
Mike Duigou mike.duigou at oracle.com
Wed Nov 14 18:27:43 UTC 2012
- Previous message: hg: jdk8/tl/langtools: 8003412: javac needs to understand java.lang.annotation.Native
- Next message: Request for Review : 6553074 : String{Buffer, Builder}.indexOf(Str, int) contains unnecessary allocation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello all;
This patch causes the indexOf and lastIndexOf implementation in AbstractStringBuilder to directly compare the character arrays rather than making a copy of the substring before comparing.
http://cr.openjdk.java.net/~mduigou/6553074/0/webrev/
- Previous message: hg: jdk8/tl/langtools: 8003412: javac needs to understand java.lang.annotation.Native
- Next message: Request for Review : 6553074 : String{Buffer, Builder}.indexOf(Str, int) contains unnecessary allocation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]