Optimization - Reusing Antlr4ResultHandler Initialization by Munmud · Pull Request #1107 · apache/age

Description

As mentioned in issue #1106,
This pull request aims to optimize the current implementation of the Antlr4ResultHandler initialization process, resulting in improved query processing time and reduced overhead. Currently, for each query made, the Antlr4ResultHandleris repeatedly initialized, leading to unnecessary performance bottlenecks. To address this issue, we propose initializing the handler only once and then reusing it for subsequent queries.