ic4y opened a new issue #1504: URL: https://github.com/apache/arrow-datafusion/issues/1504
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.** The test is as follows(4core 16G MacOS) ```select count(1) from (select user_id from event group by user_id)a ``` The total data is 350 million, and the user_id deduplication number is 5 million. The entire query takes 15s. Viewing through pprf, it is found that **about 60% of the time is destructing the GroupState**.  **Describe the solution you'd like** Using [bumpalo](https://github.com/fitzgen/bumpalo) to allocate GroupState to a chunk of memory as much as possible, and then release it wholely. Will the destruction time be much better in this way? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
