Low memory used and same time cost #2515
guanguoliang
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
If you have a way of saving memory, then I would indeed be interested; but it would need to support all the features that PHPSpreadsheet supports, and it would need to be PRed against the master branch. And any change to calling |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As my work department has a demand to export a lot of data for account statement, directly export excel is using large memory.My workmate tried to use “Memory saving” to reduce memory used.It did help to avoid use large memory, but spent double time to finish it which spent more than what we want.
So, I tried to change the code of version 1.12.0 is used in our group, and I get a way to use very low memory as well as the time cost near the original way.
I want to submit a PR, however it seems a very old version, and what I change slightly destructs encapsulation, some repeated code by adjusting the logic and the order of export.It means the way to export can't use a easy method "save", it need to use more methods like "saveSheetHeader" , 'saveSheetFormData" etc. Because we need to control memory used and make sure the right format to create an Excel.
By the way ,because what we need is a normal excel, means I just support mergeCell, formula and style.But it can cover many large data export scene. Charts, media and drawing nearly not exist.Ok, I do have no time to satisfy it. (T_T)
I want to know if author @MarkBaker has an interest to have this feature and I will try to add the feature in the newest version or maybe the old 1.12.0?
Beta Was this translation helpful? Give feedback.
All reactions