In a spreadsheet document, the "content.xml" file contains : ----- <style:style style:name="ce165" style:family="table-cell" style:parent-style-name="Default">(...)</style:style> (...) <table:table-cell table:style-name="ce165" table:number-columns-repeated="3"/> ----- The "ce165" value could be shorter. It seems that the 2 first letters represent the type (cells in this example). However, this type could be defined with only 1 letter (let's say "e" for this example). Next the number "165" seems to represent an identifier within all cells types. Again, this identifier could be shortened by using a higher base number representation. For exemple "165" with decimal representation becomes "A5" with hexadecimal representation or less in most cases with base 64 representation. Finally, this style name example could become "eA5" with hexadecimal representation. I understand that the file compression hides a part of this issue on the final libreoffice file size. However this possibly slower the read or the write of the uncompressed "content.xml" file.
We need developer input on this as I'm not sure if there is a rationale for it being the way it is (or if there is a real chance of it ever changing).
Do you have numbers showing your idea would cause any measurable speed-up? Because I doubt it very much.
I guess - I'd want to see a profile here; also the FastParser does the parsing in a separate thread, so from a parsing & memory allocate / free perspective - this is nearly ~free - as soon as we have the ODF filter(s) converted to the FastParser.
(In reply to David Tardon from comment #2) > Do you have numbers showing your idea would cause any measurable speed-up? > Because I doubt it very much. (Jerome: once you have some feedback to share, feel free to change status back to 'UNCONFIRMED'. Thanks)
Sorry, I have currently no time available for providing accurate statistics. However, I can list the below benefits : - less energy consumption (important for laptops) - possibly a faster parsing - possibly a faster compression/uncompression
I am closing this as WONTFIX. If OP ever has the time/desire to actually give numbers vs "possible benefits" then please provide those numbers and you can set this one back to UNCONFIRMED. Thanks
Migrating Whiteboard tags to Keywords: (needAdvice) [NinjaEdit]
'needsConfirmationAdvice' is only used for unconfirmed bugs. Removing it from this bug. [NinjaEdit]