On Tue, Jun 03, 2014 at 06:52:47PM +0200, Giuseppe Scrivano wrote: > Christophe Fergeau <cfergeau@xxxxxxxxxx> 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
Attachment:
pgpuwECBW7VOA.pgp
Description: PGP signature
_______________________________________________ Libosinfo mailing list Libosinfo@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libosinfo