Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v12]

2025-03-26 Thread Shaojin Wen
> By using the Class File API to dynamically generate a CompositePrinterParser, > and defining DateTimePrinterParser[] printerParsers as a specific field, C2 > can do TypeProfile optimization. > > Since the CompositePrinterParser is generated based on the pattern, we can > make the following op

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v11]

2025-03-09 Thread Shaojin Wen
On Tue, 4 Feb 2025 13:39:28 GMT, Shaojin Wen wrote: >> By using the Class File API to dynamically generate a >> CompositePrinterParser, and defining DateTimePrinterParser[] printerParsers >> as a specific field, C2 can do TypeProfile optimization. >> >> Since the CompositePrinterParser is gene

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v11]

2025-02-06 Thread Alan Bateman
On Tue, 4 Feb 2025 13:39:28 GMT, Shaojin Wen wrote: >> By using the Class File API to dynamically generate a >> CompositePrinterParser, and defining DateTimePrinterParser[] printerParsers >> as a specific field, C2 can do TypeProfile optimization. >> >> Since the CompositePrinterParser is gene

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v11]

2025-02-04 Thread Shaojin Wen
> By using the Class File API to dynamically generate a CompositePrinterParser, > and defining DateTimePrinterParser[] printerParsers as a specific field, C2 > can do TypeProfile optimization. > > Since the CompositePrinterParser is generated based on the pattern, we can > make the following op

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v10]

2025-02-04 Thread Shaojin Wen
> By using the Class File API to dynamically generate a CompositePrinterParser, > and defining DateTimePrinterParser[] printerParsers as a specific field, C2 > can do TypeProfile optimization. > > Since the CompositePrinterParser is generated based on the pattern, we can > make the following op

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v9]

2025-02-04 Thread Shaojin Wen
> By using the Class File API to dynamically generate a CompositePrinterParser, > and defining DateTimePrinterParser[] printerParsers as a specific field, C2 > can do TypeProfile optimization. > > Since the CompositePrinterParser is generated based on the pattern, we can > make the following op

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v8]

2025-02-04 Thread Shaojin Wen
> By using the Class File API to dynamically generate a CompositePrinterParser, > and defining DateTimePrinterParser[] printerParsers as a specific field, C2 > can do TypeProfile optimization. > > Since the CompositePrinterParser is generated based on the pattern, we can > make the following op

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v7]

2025-02-04 Thread Shaojin Wen
> By using the Class File API to dynamically generate a CompositePrinterParser, > and defining DateTimePrinterParser[] printerParsers as a specific field, C2 > can do TypeProfile optimization. > > Since the CompositePrinterParser is generated based on the pattern, we can > make the following op

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v6]

2025-02-03 Thread Shaojin Wen
> By using the Class File API to dynamically generate a CompositePrinterParser, > and defining DateTimePrinterParser[] printerParsers as a specific field, C2 > can do TypeProfile optimization. > > Since the CompositePrinterParser is generated based on the pattern, we can > make the following op

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v5]

2025-02-03 Thread Shaojin Wen
> By using the Class File API to dynamically generate a CompositePrinterParser, > and defining DateTimePrinterParser[] printerParsers as a specific field, C2 > can do TypeProfile optimization. > > Since the CompositePrinterParser is generated based on the pattern, we can > make the following op

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v4]

2025-02-03 Thread Shaojin Wen
> By using the Class File API to dynamically generate a CompositePrinterParser, > and defining DateTimePrinterParser[] printerParsers as a specific field, C2 > can do TypeProfile optimization. > > Since the CompositePrinterParser is generated based on the pattern, we can > make the following op

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v3]

2025-02-03 Thread Shaojin Wen
> By using the Class File API to dynamically generate a CompositePrinterParser, > and defining DateTimePrinterParser[] printerParsers as a specific field, C2 > can do TypeProfile optimization. > > Since the CompositePrinterParser is generated based on the pattern, we can > make the following op

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v2]

2025-02-03 Thread Stephen Colebourne
On Mon, 3 Feb 2025 13:07:54 GMT, Shaojin Wen wrote: >> src/java.base/share/classes/java/time/temporal/TemporalAccessor.java line >> 327: >> >>> 325: * @return the year, from MIN_YEAR to MAX_YEAR >>> 326: */ >>> 327: default int getYear() { >> >> The whole point of `TemporalAccess

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v2]

2025-02-03 Thread Shaojin Wen
On Mon, 3 Feb 2025 09:02:59 GMT, Stephen Colebourne wrote: > My comments refer to the outer parts of the PR. I haven't reviewed the class > file generation part. > > With these changes, please ensure that the same field can be output twice. > Not sure if any tests cover that. > > Thanks for

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v2]

2025-02-03 Thread Shaojin Wen
On Mon, 3 Feb 2025 07:59:02 GMT, Stephen Colebourne wrote: >> Shaojin Wen has updated the pull request incrementally with four additional >> commits since the last revision: >> >> - typo >> - bug fix, from @jodastephen >> - bug fix, from @jodastephen >> - typo > > src/java.base/share/class

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API [v2]

2025-02-03 Thread Shaojin Wen
> By using the Class File API to dynamically generate a CompositePrinterParser, > and defining DateTimePrinterParser[] printerParsers as a specific field, C2 > can do TypeProfile optimization. > > Since the CompositePrinterParser is generated based on the pattern, we can > make the following op

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API

2025-02-03 Thread Stephen Colebourne
On Fri, 31 Jan 2025 10:29:53 GMT, Shaojin Wen wrote: > By using the Class File API to dynamically generate a CompositePrinterParser, > and defining DateTimePrinterParser[] printerParsers as a specific field, C2 > can do TypeProfile optimization. > > Since the CompositePrinterParser is generate

RFR: 8349189: Speed up DateTime parse & format via Class File API

2025-02-02 Thread Shaojin Wen
By using the Class File API to dynamically generate a CompositePrinterParser, and defining DateTimePrinterParser[] printerParsers as a specific field, C2 can do TypeProfile optimization. Since the CompositePrinterParser is generated based on the pattern, we can make the following optimizations:

Re: RFR: 8349189: Speed up DateTime parse & format via Class File API

2025-02-02 Thread Shaojin Wen
On Fri, 31 Jan 2025 10:29:53 GMT, Shaojin Wen wrote: > By using the Class File API to dynamically generate a CompositePrinterParser, > and defining DateTimePrinterParser[] printerParsers as a specific field, C2 > can do TypeProfile optimization. > > Since the CompositePrinterParser is generate