Unicode xml files
While implementing loading the constants from a file, instead of having them hard-coded in the code, I noticed that because of a few special characters (greek letters) I had to make the xml file UNICODE. Unfortunately this doubles the size of the file, even though it's only because of a few characters. The current constants file contains 30 constants and has a size of 9kB, with the constant entries looking like this:
<constant>
<name>speed of light</name>
<abbreviation>c</abbreviation>
<unit>m/s</unit>
<value>299792458</value>
</constant>
Obviously, the tag names could just be made shorter to considerably decrease the file's size.
0 Comments:
Post a Comment
<< Home