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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]