Bug 2804 - Create an mmappable cache file for the mime data
Summary: Create an mmappable cache file for the mime data
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-24 22:30 UTC by Matthias Clasen
Modified: 2005-03-31 18:31 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
the format (2.03 KB, text/plain)
2005-03-24 22:31 UTC, Matthias Clasen
Details
the patch (22.84 KB, patch)
2005-03-24 22:34 UTC, Matthias Clasen
Details | Splinter Review
Update the spec to include the namespace list (2.29 KB, text/plain)
2005-03-30 12:46 UTC, Matthias Clasen
Details
updated patch to update-mime-database (24.32 KB, patch)
2005-03-30 12:47 UTC, Matthias Clasen
Details | Splinter Review
combined patch (29.37 KB, patch)
2005-03-31 22:47 UTC, Matthias Clasen
Details | Splinter Review

Description Matthias Clasen 2005-03-24 22:30:51 UTC
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.
Comment 1 Matthias Clasen 2005-03-24 22:31:49 UTC
Created attachment 2210 [details]
the format
Comment 2 Matthias Clasen 2005-03-24 22:34:54 UTC
Created attachment 2212 [details] [review]
the patch
Comment 3 Matthias Clasen 2005-03-24 22:36:15 UTC
See bug 2805 for the other half of this bug.
Comment 4 Matthias Clasen 2005-03-30 12:46:16 UTC
Created attachment 2260 [details]
Update the spec to include the namespace list
Comment 5 Matthias Clasen 2005-03-30 12:47:41 UTC
Created attachment 2261 [details] [review]
updated patch to update-mime-database
Comment 6 Matthias Clasen 2005-03-31 22:47:43 UTC
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.
Comment 7 Jonathan Blandford 2005-04-01 12:31:48 UTC
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.