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 457322 - registry is read twice on startup
registry is read twice on startup
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal normal
: 0.10.14
Assigned To: Stefan Sauer (gstreamer, gtkdoc dev)
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-07-16 11:12 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2007-07-20 11:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
move reading cache out of scan_and_update_registry() (2.85 KB, patch)
2007-07-16 11:22 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
none Details | Review
move reading cache out of scan_and_update_registry() (6.46 KB, patch)
2007-07-16 12:14 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
committed Details | Review

Description Stefan Sauer (gstreamer, gtkdoc dev) 2007-07-16 11:12:52 UTC
gst.c::ensure_current_registry_forking() reads the registry twice in most cases. Once in the child's scan_and_update_registry() and then once agin in the parent.
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2007-07-16 11:22:10 UTC
Created attachment 91849 [details] [review]
move reading cache out of scan_and_update_registry()
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2007-07-16 12:14:54 UTC
Created attachment 91851 [details] [review]
move reading cache out of scan_and_update_registry()

This changes the return code of the local scan_and_update method to give better feedback to actually avoid rescanning.
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2007-07-16 12:41:41 UTC
2007-07-16  Stefan Kost  <ensonic@users.sf.net>

	* gst/gst.c:
	  Avoid reading registry twice on startup. Fixes #457322.

Comment 4 Marc-Andre Lureau 2007-07-20 11:50:16 UTC
Eheh cooool! Stefan, 
let's continue the fight for speed ;)
cheers from Guadec,