GNOME Bugzilla – Bug 161945
Locations.xml is huge
Last modified: 2008-08-15 21:48:18 UTC
Locations.xml is huge (8.4MB at the moment), and takes quite a lot of time to process on slower systems. As more translations are made it is going to get even larger and slower to parse. One way to reduce the size would be to ommit all the translations from the XML file. Instead, just install the catalogs for the .po files in po-locations/, and call gettext() on the strings found in the XML file. This gweather would just be reading the base data plus one set of translations (and for the case where no translations are available, just the base data). The only other improvements I can think of would be to use something other than XML, or split the data out further (eg. one file defining the tree structure and user visible strings, the other with location data, METAR/BOM/etc codes).
Marking as 2.12 for the moment. Perhaps we will resolve this beforehand, but it will be resolved for weather.gnome.org at least.
*** Bug 352267 has been marked as a duplicate of this bug. ***
Would it instead be possible to remove the file altogether? It doesn't seem sensible to me to hard-code every possible location on the planet into an XML file to begin with. Would it be possible to allow the user to search locations on the server instead of selecting from a hard-coded list?
Moving libgweather-specific bugs out of gweather-applet
*** This bug has been marked as a duplicate of 547961 ***