[libvirt] [PATCHv2 02/10] virsh: reduce complexity in argv iteration

Eric Blake eblake at redhat.com
Wed Jun 15 13:50:37 UTC 2011


On 06/15/2011 12:36 AM, Matthias Bolte wrote:
> 2011/6/14 Eric Blake <eblake at redhat.com>:
>> This reduces things from O(n^2) to O(n).
>>
>> * tools/virsh.c (vshCommandOptArgv): Change signature.
>> (cmdEcho): Update caller.
>> Based on a patch by Lai Jiangshan.
>> ---
>>
>> v2: Drop the macro, avoid __ naming, reduce patch size
>>
>>  tools/virsh.c |   21 ++++++++++++---------
>>  1 files changed, 12 insertions(+), 9 deletions(-)
> 
> ACK.

Thanks; pushed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110615/aab1652a/attachment-0001.sig>


More information about the libvir-list mailing list