After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 161945 - Locations.xml is huge
Locations.xml is huge
Status: RESOLVED DUPLICATE of bug 547961
Product: libgweather
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: 2.24.0
Assigned To: libgweather-maint
libgweather-maint
: 352267 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-12-22 02:31 UTC by James Henstridge
Modified: 2008-08-15 21:48 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description James Henstridge 2004-12-22 02:31:27 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).
Comment 1 Danielle Madeley 2005-01-09 09:39:38 UTC
Marking as 2.12 for the moment. Perhaps we will resolve this beforehand, but it
will be resolved for weather.gnome.org at least.
Comment 2 Danielle Madeley 2006-08-21 16:49:26 UTC
*** Bug 352267 has been marked as a duplicate of this bug. ***
Comment 3 Sebastien Roy 2007-08-13 18:36:30 UTC
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?
Comment 4 Dan Winship 2008-06-18 17:34:56 UTC
Moving libgweather-specific bugs out of gweather-applet
Comment 5 Behdad Esfahbod 2008-08-15 21:48:18 UTC

*** This bug has been marked as a duplicate of 547961 ***