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

2011-06-15 Thread Eric Blake
On 06/15/2011 12:36 AM, Matthias Bolte wrote: > 2011/6/14 Eric Blake : >> 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

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

2011-06-14 Thread Matthias Bolte
2011/6/14 Eric Blake : > 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 --

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

2011-06-14 Thread Eric Blake
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(+),