Re: [PATCH 3/6] qemu: replace multiple strcmps with a switch on an enum

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

 



On 09/25/2013 02:30 PM, Laine Stump wrote:
> I'm not sure why this code was written to compare the strings that it
> had just retrieved from an enum->string conversion, rather than just
> look at the original enum values, but this yields the same results,
> and is much more efficient (especially as you add more devices).
> 
> This is a prerequisite for patches to resolve:
> 
>    https://bugzilla.redhat.com/show_bug.cgi?id=1003983
> ---
>  src/qemu/qemu_command.c | 13 +++++++++----
>  1 file changed, 9 insertions(+), 4 deletions(-)

ACK

Jan

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