https://bugs.freedesktop.org/show_bug.cgi?id=87082

            Bug ID: 87082
           Summary: automatic-styles style-name attribute could be shorter
           Product: LibreOffice
           Version: 4.1.6.2 release
          Hardware: Other
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: filters and storage
          Assignee: [email protected]
          Reporter: [email protected]

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to