Re: inefficient indexof when String has one length

2015-01-25 Thread Otávio Gonçalves de Santana
Thank you. My email: otavioj...@java.net On Sun, Jan 25, 2015 at 8:47 PM, Claes Redestad wrote: > > On 2015-01-25 23:30, Otávio Gonçalves de Santana wrote: > >> Can anyone help me as sponsor? >> > > Sure, why not. > > I'll remove the escaped double-quote as per Paul's request and run it > throug

Re: inefficient indexof when String has one length

2015-01-25 Thread Claes Redestad
On 2015-01-25 23:30, Otávio Gonçalves de Santana wrote: Can anyone help me as sponsor? Sure, why not. I'll remove the escaped double-quote as per Paul's request and run it through a quick sanity test. Which e-mail do you want to get credited? /Claes

Re: inefficient indexof when String has one length

2015-01-25 Thread Otávio Gonçalves de Santana
Can anyone help me as sponsor? On May 27, 2014 2:17 PM, "Otávio Gonçalves de Santana" < otaviopolianasant...@gmail.com> wrote: > Can anyone help me as sponsor? > On May 12, 2014 1:57 PM, "Paul Sandoz" wrote: > >> On Apr 26, 2014, at 12:56 PM, Otávio Gonçalves de Santana < >> otavioj...@java.net>

Re: inefficient indexof when String has one length

2014-05-30 Thread Tom Schindl
On the same topic but still a bit different shouldn't indexOf(String) check for the size and call indexOf(char) when the length is 1, same for indexOf(String,int)? Tom On 26.04.14 11:56, Otávio Gonçalves de Santana wrote: > When a String has length just one, could be replaced by equivalent > char

Re: inefficient indexof when String has one length

2014-05-27 Thread Otávio Gonçalves de Santana
Can anyone help me as sponsor? On May 12, 2014 1:57 PM, "Paul Sandoz" wrote: > On Apr 26, 2014, at 12:56 PM, Otávio Gonçalves de Santana < > otavioj...@java.net> wrote: > > When a String has length just one, could be replaced by equivalent > > character literals, gaining some performance enhancem

Re: inefficient indexof when String has one length

2014-05-12 Thread Paul Sandoz
On Apr 26, 2014, at 12:56 PM, Otávio Gonçalves de Santana wrote: > When a String has length just one, could be replaced by equivalent > character literals, gaining some performance enhancement. > > I found 107 changes. > This looks good to me, just one small issue: --- a/src/share/classes/jav

Re: inefficient indexof when String has one length

2014-04-28 Thread Otávio Gonçalves de Santana
link: https://dl.dropboxusercontent.com/u/16109193/open_jdk/index_of_with_char.zip On Mon, Apr 28, 2014 at 10:25 AM, Otávio Gonçalves de Santana < otavioj...@java.net> wrote: > > link: > https://dl.dropboxusercontent.com/u/16109193/open_jdk/index_of_with_char.zip > > > On Mon, Apr 28, 2014 at 4:

Re: inefficient indexof when String has one length

2014-04-28 Thread Paul Sandoz
On Apr 27, 2014, at 2:22 PM, Claes Redestad wrote: > Possibly a few bytes in static class footprint, sure. Maybe this is something > javac should optimize (javap on some trivial examples suggests this doesn't > happen) rather than trying to root out all suboptimal cases, especially since > ther