jerryshao commented on code in PR #9475:
URL: https://github.com/apache/gravitino/pull/9475#discussion_r2646647288
##########
core/src/main/java/org/apache/gravitino/GravitinoEnv.java:
##########
@@ -537,14 +539,28 @@ private void initGravitinoServerComponents() {
SchemaOperationDispatcher schemaOperationDispatcher =
new SchemaOperationDispatcher(catalogManager, entityStore,
idGenerator);
- SchemaHookDispatcher schemaHookDispatcher = new
SchemaHookDispatcher(schemaOperationDispatcher);
+ SchemaDispatcher schemaDispatcherProxy =
+ (SchemaDispatcher)
+ Proxy.newProxyInstance(
+ SchemaDispatcher.class.getClassLoader(),
+ new Class[] {SchemaDispatcher.class},
+ new OperationDispatcherInterceptor(
Review Comment:
My question is why using reflection/proxy can reduce the number of calls.
--
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]