Re: [OpenJDK 2D-Dev] Various fixes to pisces stroke widening code

2010-07-21 Thread Denis Lila
> >> 721 - Arrays.sort() > > > > I thought about using this, but I did some measurements, and it > turns out that > > Arrays.sort() is a bit slower if the portion of the array being > sorted has fewer > > than about 70 elements. > > I wonder what the typical number of elements is. Is this s

Re: [OpenJDK 2D-Dev] Various fixes to pisces stroke widening code

2010-07-21 Thread Jim Graham
Denis Lila wrote: Hello Jim. Thank you very much for taking the time to read through this. 169 - if origLen reaches the end of the dash exactly (the "==" case) You're right, I should. I can't just replace <= with == though, because the results will be the same: in the equal case origLen

Re: [OpenJDK 2D-Dev] Various fixes to pisces stroke widening code

2010-07-21 Thread Denis Lila
Hello Jim. Thank you very much for taking the time to read through this. > 91 - is there a reason to copy the dash array? Theoretically if this > object were used in an arbitrary fashion it is good sense to protect > against data changing out from under it, but in practice we only ever > feed