Github user MikeThomsen commented on the issue: https://github.com/apache/nifi/pull/2104 @mattyb149 I did a sample flow with each of ours and found the performance to be awful. I did some investigation and experimentation with the Kotlin ScriptEngine and found that after repeatedly running the same script over and over again, the performance seems to progressively degrade. At least that is what I am seeing. I tried using the Compilable (I think) interface for it, which seems to actually run code through the Kotlin compiler and execute only the generated output. That ran like a champ (as one would hope), but that means we might have to gut a lot of ExecutScript and such and start over with Compilable to make this work. I am not sure if that is viable because I don't know if all of the supplied engines support that interface.
---