Experimental Insurance liabilities project

Hi,
I have begun on a small project implementing insurance liabilities in/on Strata. I want to make the pricing function general, so I used the conventions class (StandardPolicyConventions.java) to define the functions used for the generic pricing function StochasticPIDEComputation.java. But in the process I seem to have lost speed compared to the ’ inline’ style of coding. Is there a better way to achieve this generality? The code is found at GitHub - oyvfos/FVL, starting point is setup.java. Any help will be appreciated. Kind regards, Oyvind

Edit: The functions did not add overhead after all. Any other comments for improvement would be appreciated.

Thanks for providing the link to the project - it is nice to see Strata extended in a different direction!