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

Christophe Fergeau cfergeau at redhat.com
Wed Jun 4 11:45:40 UTC 2014


On Wed, Jun 04, 2014 at 12:24:32PM +0100, Daniel P. Berrange wrote:
> I'm surprised that osinfo_entity_get_type is soo high up there too.

There will be at least one osinfo_entity_get_type() call every time we
call OSINFO_ENTITY, OSINFO_IS_ENTITY, ... so this could come from that.
I think compiling with -DG_DISABLE_CAST_CHECKS would turn these calls
into noop, this could give an indication of how much we can improve
things by removing some of these get_type() calls.

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/54501079/attachment.sig>


More information about the Libosinfo mailing list