Reducing the memory overhead of the mime system

Waldo Bastian bastian at kde.org
Tue Mar 29 11:38:41 EEST 2005


On Monday 28 March 2005 22:11, Matthias Clasen wrote:
> As things currently are, the xdgmime implementation of the shared mime
> info spec uses ~50k of heapspace, and does a fair bit of text-file
> parsing to populate it with data that rarely changes, and is the same
> for all clients. To make things worse, xdgmime is used by source code
> sharing, thus gtk+ and gnome-vfs have their own copies. As a
> consequence, applications using gtk+ and gnome-vfs (with the new
> filechooser, this means basically all gtk+ applications) pay the 50k
> price twice.
>
> An easy and well-established way to avoid both the parsing and the
> memory overhead is to use an mmappable cache file. Below is a proposal
> for such a format, which closely follows the in-memory data structures
> currently used by xdgmime.

Good idea, looks ok.

Cheers,
Waldo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xdg/attachments/20050329/18176a1e/attachment.pgp 


More information about the xdg mailing list