npawar opened a new pull request #5257: Use GroovyCodeSource to cache compiled 
source
URL: https://github.com/apache/incubator-pinot/pull/5257
 
 
   Using GroovyShell results in parsing of the script for every record.
   Instead, using GroovyCodeSource along with GroovyClassLoader, so that 
compiled source is cached.
   
   Results from benchmark, comparing a concat function and a find max in array 
function, executed using a) java b) groovy shell c) groovy code source
   
   ```
   Benchmark                                           Mode  Cnt     Score      
Error  Units
   BenchmarkTransformFunctions.groovyCodeSourceConcat  avgt    3     0.803 ±    
0.182  us/op
   BenchmarkTransformFunctions.groovyShellConcat       avgt    3  3070.285 ± 
6152.874  us/op
   BenchmarkTransformFunctions.javaConcat              avgt    3     0.717 ±    
0.093  us/op
   ```
   
   ```
   Benchmark                                        Mode  Cnt     Score       
Error  Units
   BenchmarkTransformFunctions.groovyCodeSourceMax  avgt    3     7.564 ±     
0.923  us/op
   BenchmarkTransformFunctions.groovyShellMax       avgt    3  4244.830 ± 
12903.002  us/op
   BenchmarkTransformFunctions.javaMax              avgt    3     4.413 ±     
0.473  us/op
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to