[Libosinfo] [RFC PATCH 0/5] various optimizations

Christophe Fergeau cfergeau at redhat.com
Wed Jun 4 08:38:15 UTC 2014


On Tue, Jun 03, 2014 at 06:52:47PM +0200, Giuseppe Scrivano wrote:
> Christophe Fergeau <cfergeau at redhat.com> writes:
> > The call to osinfo_loader_get_device() can also hide a g_object_new(),
> > which can be heavy.
> 
> indeed, g_object_new seems to be very slow.  I will try to play with
> what Daniel suggested and see if it makes any difference.

Some profiling should tell you if the expensive part is the object
creation or the hash table insertion, and how much slower one is
compared to the ohter. Did you get these numbers by any chance?

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20140604/2303e339/attachment.sig>


More information about the Libosinfo mailing list