As things are currently, each app mallocs around 50k for the mime data. To make things worse, gtk and gnome-vfs have their own copies of the data. We propose to define a binary cache format (in addition to the text files which are currently created), and allow apps to mmap that. I'll attach a proposal for such a cache format, and a patch which makes update-mime-database generate these files.
Created attachment 2210 [details] the format
Created attachment 2212 [details] [review] the patch
See bug 2805 for the other half of this bug.
Created attachment 2260 [details] Update the spec to include the namespace list
Created attachment 2261 [details] [review] updated patch to update-mime-database
Created attachment 2281 [details] [review] combined patch The new patch is unchanged for update-mime-database.c It patches the description of the cache file format into the spec now.
Thanks matthias. This is committed.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.