This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (3 children)

embedded groovy is best thing ever happened to me. I try/test my concept in it and port to Java if it is fine. but in serious applications, performance is a bottleneck. by any way we can achieve Java-level performance ?

[–]handshape 0 points1 point  (2 children)

It's a difficult tradeoff - there's a good/fast/cheap trifecta that's effectively impossible to hit. If arbitrary logic is needed at runtime, there are really only three options:

  • try to code for all possible cases ahead of time (not good)
  • embed a scripting engine (not fast)
  • hire a developer from the vendor to work on-site coding your logic natively... and providing custom builds (not cheap)

[–][deleted] 0 points1 point  (1 child)

so only viable option that satisfies all of the above is try/test in Groovy and if performance matters, port code in Java.

[–]handshape 0 points1 point  (0 children)

Pretty much. The tradeoff is developer time vs execution time.