ScriptRunner Scripted Fields vs. Custom Plugin with CalculatedCFType Field

Hello everyone,

as I’m looking at performance issues of a Jira instance with a lot of Scripted Fields for certain things (e.g. count incidents, comments separated by internal / external, etc.) i had a again the following question in my mind.

If I would replace the Scripted Field with a custom plugin that implements CalculatedCFType would there be a difference in performance (also indexing / searching) compared to Scripted Fields?

I hope someone has already tested this or has some insights.