How can I disable Caching?

Topics: Help
Oct 8, 2011 at 3:20 PM

I have two questions

1. I have to use NCalc in a very heavy formula intensive calculation and i would like to know, is it possible to not to new up for every new expression, rather, create a single class and change the expression as and when the expression changes? This is to avoid, too much heal allocation.

2. In my case, cache does not provide any value since each and every calculation is unique. Is it possible to disable caching?

 

Thanks,

Oct 8, 2011 at 3:27 PM

Found the answer for (2) with options, NoCache.

For (1), I got the source code and try to change it to create a constructor without any parameters and then set the expression through a property and see if it solves my problem.

Thanks,