Re: [PATCH 4/4] qemu*xml2*test: Cache capabilities between tests

2021-02-19 Thread Jonathon Jongsma
On Fri, 19 Feb 2021 16:53:21 +0100 Peter Krempa wrote: > Invoking the XML parser every time is quite expensive. Since we have a > deep copy function for 'virQEMUCapsPtr' object, we can cache the > parsed results lazily. > > This brings significant speedup to qemuxml2argvtest: > > real 0m2.234s

[PATCH 4/4] qemu*xml2*test: Cache capabilities between tests

2021-02-19 Thread Peter Krempa
Invoking the XML parser every time is quite expensive. Since we have a deep copy function for 'virQEMUCapsPtr' object, we can cache the parsed results lazily. This brings significant speedup to qemuxml2argvtest: real0m2.234s user0m2.140s sys 0m0.089s vs. real0m1.161s user0m1