By: Drakon
Date: 2013-12-06
Time: 11:20
|
more faster fill xlsx file with over 10000 rowHi
Then i use clsOpenTBS for xlsx file with over 10000 row. Metod Show work over 100 sec. I found slowly function MsExcel_ConvertToExplicit_Item and rebild it. Now its work less then second. Code:
PHP 5.5 PS for multi line( simbol '\n' within Text ) replace:
|
|||
By: Skrol29
Date: 2013-12-13
Time: 03:15
|
Re: more faster fill xlsx file with over 10000 rowHi Drakon,
Thank you very much fr sharing this. I'll check that quite soon. |
|||
By: Toby
Date: 2014-06-25
Time: 18:37
|
Re: more faster fill xlsx file with over 10000 rowHi Drakon,
Great patch - many thanks. I'm seeing fantastic performance improvements with this, both under PHP and HHVM. Only issue though is that in some situations, your code is generating spurious empty entities in the resulting XML. See the linked template (Test8.xlsx) and result after passing through OpenTBS (Test8-out-new.xlsx) for an example of what's happening. This only happens with your revised function and not with the original OpenTBS version. Test8.xlsx: https://dl.dropboxusercontent.com/u/13278590/Test8.xlsx Test8-out-new.xlsx: https://dl.dropboxusercontent.com/u/13278590/Test8-out-new.xlsx In the generated XML (xl/worksheets/sheet1.xml), there is an extra <c/> tag at the beginning of each row generated when your function is in use. This shouldn't be there. For example: With your function:
With the original OpenTBS code:
Thanks, Toby |
|||
By: Skrol29
Date: 2014-09-25
Time: 01:58
|
Re: more faster fill xlsx file with over 10000 rowHi,
The problem of large amount of row should be fixed with OpenTBS 1.9.2 The function for saving cells with explicit positioning is now 6 time faster. This is also a new command to force OpenTBS to let cells with relative positioning which is quite faster. http://sourceforge.net/p/tinybutstrong/code/HEAD/tree/trunk/plugins/opentbs/tbs_plugin_opentbs.php |