PHPExcel very slow - ways to improve?

后端 未结 8 1378
孤街浪徒
孤街浪徒 2020-12-07 13:28

I am generating reports in .xlsx using PHPExcel. It was okay in the initial testing stages with small data sets (tens of rows, 3 sheets), but now when using it on a real pro

8条回答
  •  时光取名叫无心
    2020-12-07 13:54

    In my case I increased performance by changing cache storage method to in memory gzip cache_in_memory_gzip

    $cm = \PHPExcel_CachedObjectStorageFactory::cache_in_memory_gzip;
    \PHPExcel_Settings::setCacheStorageMethod($cm);
    

提交回复
热议问题