Re: [PATCH 02/16] hyperv: add cim types support to code generator

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

 



2016-09-14 23:38 GMT+02:00 Matthias Bolte <matthias.bolte@xxxxxxxxxxxxxx>:
> 2016-09-14 23:16 GMT+02:00 John Ferlan <jferlan@xxxxxxxxxx>:
>>
>>
>> On 08/09/2016 08:39 AM, Jason Miesionczek wrote:
>>> ---
>>>  src/hyperv/hyperv_wmi_generator.py | 57 ++++++++++++++++++++++++++++++++++++--
>>>  1 file changed, 54 insertions(+), 3 deletions(-)
>>>
>>
>> Not that familiar with the needs here. I assume it's fine, but your
>> commit message should describe what's going on.  As in what these
>> changes do.
>>
>> John
>
> Actually I'd drop this patch. It basically builds up a string lookup
> table to be used in patch 7 at runtime. I don't think that that is the
> right approach for this.
>
> John, thanks for looking at these patches.

I think I should elaborate on this.

This patch add logic to create a 2-level string based lookup table to
be used in patch 7. This O(n) string based lookup is inefficient. The
generator has all the information to turn this into a O(1) lookup
using an enum to represent the index into a 1-level index based lookup
table.

-- 
Matthias Bolte
http://photron.blogspot.com

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