Re: [PATCH 2/3] Release expanded template argument vector

2024-10-07 Thread Patrick Palka
On Mon, 7 Oct 2024, Jason Merrill wrote: > On 10/7/24 10:26 AM, Patrick Palka wrote: > > On Mon, 7 Oct 2024, Jason Merrill wrote: > > > > > On 10/7/24 9:58 AM, Patrick Palka wrote: > > > > On Sat, 5 Oct 2024, Jason Merrill wrote: > > > > > > > > > On 10/4/24 11:00 AM, Patrick Palka wrote: > > >

Re: [PATCH 2/3] Release expanded template argument vector

2024-10-07 Thread Jason Merrill
On 10/7/24 10:26 AM, Patrick Palka wrote: On Mon, 7 Oct 2024, Jason Merrill wrote: On 10/7/24 9:58 AM, Patrick Palka wrote: On Sat, 5 Oct 2024, Jason Merrill wrote: On 10/4/24 11:00 AM, Patrick Palka wrote: On Thu, 3 Oct 2024, Jason Merrill wrote: On 10/3/24 12:38 PM, Jason Merrill wrote:

Re: [PATCH 2/3] Release expanded template argument vector

2024-10-07 Thread Patrick Palka
On Mon, 7 Oct 2024, Jason Merrill wrote: > On 10/7/24 9:58 AM, Patrick Palka wrote: > > On Sat, 5 Oct 2024, Jason Merrill wrote: > > > > > On 10/4/24 11:00 AM, Patrick Palka wrote: > > > > On Thu, 3 Oct 2024, Jason Merrill wrote: > > > > > > > > > On 10/3/24 12:38 PM, Jason Merrill wrote: > > >

Re: [PATCH 2/3] Release expanded template argument vector

2024-10-07 Thread Jason Merrill
On 10/7/24 9:58 AM, Patrick Palka wrote: On Sat, 5 Oct 2024, Jason Merrill wrote: On 10/4/24 11:00 AM, Patrick Palka wrote: On Thu, 3 Oct 2024, Jason Merrill wrote: On 10/3/24 12:38 PM, Jason Merrill wrote: On 10/2/24 7:50 AM, Richard Biener wrote: This reduces peak memory usage by 20% for

Re: [PATCH 2/3] Release expanded template argument vector

2024-10-07 Thread Patrick Palka
On Sat, 5 Oct 2024, Jason Merrill wrote: > On 10/4/24 11:00 AM, Patrick Palka wrote: > > On Thu, 3 Oct 2024, Jason Merrill wrote: > > > > > On 10/3/24 12:38 PM, Jason Merrill wrote: > > > > On 10/2/24 7:50 AM, Richard Biener wrote: > > > > > This reduces peak memory usage by 20% for a specific te

Re: [PATCH 2/3] Release expanded template argument vector

2024-10-05 Thread Jason Merrill
On 10/4/24 11:00 AM, Patrick Palka wrote: On Thu, 3 Oct 2024, Jason Merrill wrote: On 10/3/24 12:38 PM, Jason Merrill wrote: On 10/2/24 7:50 AM, Richard Biener wrote: This reduces peak memory usage by 20% for a specific testcase. Bootstrapped and tested on x86_64-unknown-linux-gnu. It's ver

Re: [PATCH 2/3] Release expanded template argument vector

2024-10-04 Thread Patrick Palka
On Thu, 3 Oct 2024, Jason Merrill wrote: > On 10/3/24 12:38 PM, Jason Merrill wrote: > > On 10/2/24 7:50 AM, Richard Biener wrote: > > > This reduces peak memory usage by 20% for a specific testcase. > > > > > > Bootstrapped and tested on x86_64-unknown-linux-gnu. > > > > > > It's very ugly so I

Re: [PATCH 2/3] Release expanded template argument vector

2024-10-03 Thread Jason Merrill
On 10/3/24 12:38 PM, Jason Merrill wrote: On 10/2/24 7:50 AM, Richard Biener wrote: This reduces peak memory usage by 20% for a specific testcase. Bootstrapped and tested on x86_64-unknown-linux-gnu. It's very ugly so I'd appreciate suggestions on how to handle such situations better? I'm pu

Re: [PATCH 2/3] Release expanded template argument vector

2024-10-03 Thread Jason Merrill
On 10/2/24 7:50 AM, Richard Biener wrote: This reduces peak memory usage by 20% for a specific testcase. Bootstrapped and tested on x86_64-unknown-linux-gnu. It's very ugly so I'd appreciate suggestions on how to handle such situations better? I'm pushing this alternative patch, tested x86_64

Re: [PATCH 2/3] Release expanded template argument vector

2024-10-02 Thread Jason Merrill
On 10/2/24 7:50 AM, Richard Biener wrote: This reduces peak memory usage by 20% for a specific testcase. Bootstrapped and tested on x86_64-unknown-linux-gnu. It's very ugly so I'd appreciate suggestions on how to handle such situations better? gcc/cp/ * pt.cc (coerce_template_parms): R

[PATCH 2/3] Release expanded template argument vector

2024-10-02 Thread Richard Biener
This reduces peak memory usage by 20% for a specific testcase. Bootstrapped and tested on x86_64-unknown-linux-gnu. It's very ugly so I'd appreciate suggestions on how to handle such situations better? gcc/cp/ * pt.cc (coerce_template_parms): Release expanded argument vector when