andishgar opened a new pull request, #55883: URL: https://github.com/apache/arrow/pull/55883
### Rationale for this change RE2 is currently compiled for each input chunk. However, it is possible to compile it once during kernel initialization and reuse the compiled instance across invocations. ### What changes are included in this PR? Cache the compiled RE2 instance along with the relevant data in the kernel state, avoiding redundant compilation across input chunks. ### Are these changes tested? No new tests have been added. However, I ran all existing unit tests. ### Are there any user-facing changes? No. ### Was AI used for this PR? In accordance with the [AI generation guidelines](https://arrow.apache.org/docs/dev/developers/overview.html#ai-generated-code), please disclose below whether and how AI was used in this PR. **PR code and description written by:** - [x] Human - [ ] AI **Reviewed before submission by:** - [x] Human - [x] AI - [ ] Not reviewed -- 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]
