GNOME Bugzilla – Bug 332151
xml registry loader should use mmap() where possible
Last modified: 2006-03-23 11:57:18 UTC
There's a simple mmap() wrapper in GLib since GLib-2.8, the XML registry reader should try to use that when reading registry files and we're compiling against GLib-2.8 or newer. Tentative patch coming up.
Created attachment 59921 [details] [review] tentative patch
patch looks simple and good. Is this any faster or just more fancy?
On my systems here it's reproducibly faster (hot cache). Only a tad though, nothing spectacular. But then, every little bit helps, no?
2006-03-23 Tim-Philipp Müller <tim at centricular dot net> * gst/gstregistryxml.c: (gst_registry_xml_read_cache): If compiling against GLib-2.8 or newer, try to read the registry file using GMappedFile first before falling back to fopen() + fread() (#332151).