Csaba Ringhofer created IMPALA-11094:
----------------------------------------

             Summary: Speed up Hive UDFs by using MethodHandle instead of 
reflection
                 Key: IMPALA-11094
                 URL: https://issues.apache.org/jira/browse/IMPALA-11094
             Project: IMPALA
          Issue Type: Improvement
          Components: Frontend
            Reporter: Csaba Ringhofer


AFAIK using MethodHandle + invokeExact() is orders of magnitude faster than 
calling Method.invoke():
https://github.com/apache/impala/blob/b96439f6806731d2b3cac84d0252f2b4c73aca7f/fe/src/main/java/org/apache/impala/hive/executor/UdfExecutor.java#L372

MethotHandle is available since Java 7:
https://docs.oracle.com/javase/7/docs/api/java/lang/invoke/MethodHandle.html



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to