« Previous | Next » 

Revision acc4af3f

IDacc4af3fec335bb0778456f72bfb2c3591c11da4

Added by Paolo Bonzini over 12 years ago

qom: clean up/optimize object_dynamic_cast

The interface loop can be performed only on the parent object. It
does not need to be done on each interface. Similarly, we can
simplify the code by switching early from the implementation
object to the parent object.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences