ic4y commented on pull request #1520: URL: https://github.com/apache/arrow-datafusion/pull/1520#issuecomment-1006702019
@alamb Thank you, I tried your method, and the `Drop` does consumes so much time. But I added the following to the code (this is mentioned in the [user guide](https://github.com/apache/arrow-datafusion/blob/ecb09d9e37a4ea8f06d145c4fdcbdb3b8bb64ab7/docs/source/user-guide/library.md)) ```rust #[global_allocator] static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc; ``` It seems that using SnMalloc memory allocator solved this problem, and the time of `Drop` almost disappears. So use bumpalo for GroupState is currently meaningless, this problem can be solved by SnMalloc. Thanks again @alamb for helping meļ¼then I will close this pr -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org