Re: RFR: 8152733: Avoid creating Manifest when checking for Multi-Release attribute

2016-03-28 Thread Claes Redestad
On 2016-03-25 17:53, Paul Sandoz wrote: On 25 Mar 2016, at 17:37, Claes Redestad wrote: Interesting, my only concern is we'd add more code/complexity, but it seems the shift will always be == len when not matching a character in src (the proof is left out as an exercise), so this can be sim

Re: RFR: 8152733: Avoid creating Manifest when checking for Multi-Release attribute

2016-03-25 Thread Paul Sandoz
> On 25 Mar 2016, at 17:37, Claes Redestad wrote: > > Interesting, my only concern is we'd add more code/complexity, but it seems > the shift will always be == len when not matching a character in src (the > proof is left out as an exercise), so this can be simplified further to: > > byte c =

Re: RFR: 8152733: Avoid creating Manifest when checking for Multi-Release attribute

2016-03-25 Thread Claes Redestad
On 2016-03-25 16:03, Paul Sandoz wrote: On 25 Mar 2016, at 13:56, Claes Redestad wrote: You've replaced the precomputed good suffix shift which i think makes the Math.max in math a bit harder to read. A comment or just move a local for "j < len - 1 ? len : 1" would make it a bit easier to

Re: RFR: 8152733: Avoid creating Manifest when checking for Multi-Release attribute

2016-03-25 Thread Steve Drach
Hi, A minor nit on the comment > + * Since there are no repeated substrings in our search strings, > + * the good character shifts can be replaced with a comparison. Probably should be “good suffix shifts”. Steve

Re: RFR: 8152733: Avoid creating Manifest when checking for Multi-Release attribute

2016-03-25 Thread Paul Sandoz
> On 25 Mar 2016, at 13:56, Claes Redestad wrote: > >> >> You've replaced the precomputed good suffix shift which i think makes the >> Math.max in math a bit harder to read. A comment or just move a local for "j >> < len - 1 ? len : 1" would make it a bit easier to read. >> >> It would be go

Re: RFR: 8152733: Avoid creating Manifest when checking for Multi-Release attribute

2016-03-25 Thread Claes Redestad
On 2016-03-25 11:40, Alan Bateman wrote: On 25/03/2016 01:06, Claes Redestad wrote: Hi, the integration of the multi-release jar feature[1] caused a number of startup regressions, the primary cause of which was determined to be due to parsing manifests into java.util.jar.Manifest only to ch

Re: RFR: 8152733: Avoid creating Manifest when checking for Multi-Release attribute

2016-03-25 Thread Paul Sandoz
> On 25 Mar 2016, at 02:06, Claes Redestad wrote: > > Hi, > > the integration of the multi-release jar feature[1] caused a number of > startup regressions, the primary cause of which was determined to be due to > parsing manifests into java.util.jar.Manifest only to check for the > Multi-Rel

Re: RFR: 8152733: Avoid creating Manifest when checking for Multi-Release attribute

2016-03-25 Thread Alan Bateman
On 25/03/2016 01:06, Claes Redestad wrote: Hi, the integration of the multi-release jar feature[1] caused a number of startup regressions, the primary cause of which was determined to be due to parsing manifests into java.util.jar.Manifest only to check for the Multi-Release attribute. This

RFR: 8152733: Avoid creating Manifest when checking for Multi-Release attribute

2016-03-24 Thread Claes Redestad
Hi, the integration of the multi-release jar feature[1] caused a number of startup regressions, the primary cause of which was determined to be due to parsing manifests into java.util.jar.Manifest only to check for the Multi-Release attribute. This can be avoided by reusing the logic already