[libvirt] [PATCH 3/4] interface: re-use name and mac address rather than re-retrieving

Daniel P. Berrange berrange at redhat.com
Fri Sep 25 16:25:33 UTC 2015


On Fri, Sep 25, 2015 at 11:13:55AM -0400, Laine Stump wrote:
> Getting the MAC address of an interface is actually fairly expensive,
> and we've already gotten it and stored it into def, so just keep def
> around a bit longer and retrieve it from there.
> 
> This reduces the time for "virsh iface-list --all" from 28 to 23
> seconds when there are 400 interfaces.
> ---
>  src/interface/interface_backend_netcf.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)

ACK

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 :|




More information about the libvir-list mailing list