On Tue, Jun 03, 2014 at 04:08:07PM +0200, Giuseppe Scrivano wrote: > libosinfo takes quite a while to preload its data, it was evident in > virt-manager that the UI became much slower. This series is mostly > targeted at starting a discussion about this issue. > > I thought about caching the data in another format, that could be used > instead of XML without preloading the entire DB at the startup, but it > seems like a big task considering the various relations between > objects at runtime. > > I am not sure if patch 5/5 is correct (does the lang function in the > xpath query use gettext?). > > With the following patches, the startup time is around -30% on my > machine. What do you think about these changes? Any other ideas? Pretty much look fine. I'd suggest using oprofile or sysprof to collect data on exactly where our cputime is disappearing to before trying to optimize further. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| _______________________________________________ Libosinfo mailing list Libosinfo@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libosinfo