I just have finished the cache handler in jSunnyreports. I have done a preliminary test, here are the results:
465 files from the Solarmax 2000S PDL logger ( 2 years of data ).
- jSunnyreports 22.214.171.124b6 without cache : 63 seconds
- jSunnyreports 126.96.36.199A WITH cache (cachesave ON): 37,6 seconds ( 1 file was changed ).
- jSunnyreports 188.8.131.52A WITH cache ( cachesave OFF ): 30 seconds ( 1 file was changed ).
A 25,4 seconds performance gain between these two versions. That is a 40% performance gain. And with cache save off a further 6 seconds decrease ( 50% performance boost )
All the coding is done, I’m currently testing this new version if I can find any errors.
I can make another improvement. Loading and saving the cache is still quite expensive to do. Instead of saving the cache all the time I could add a “save once a day” mechanism.