Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[miq_provision_virt_workflow.rb] Use VmOrTemplate#platform
Very large performance improvement from this patch on large collections of templates since it avoids preloading all together, reducing the number of iterations over the VM collection, and the number of support objects needing to be introduced (that would later need to be garbage collected. Benchmark --------- **Before** | ms | queries | query (ms) | rows | | ---: | ---: | ---: | ---: | | 27107 | 33 | 1958.5 | 243133 | | 26803 | 33 | 1944.2 | 243133 | | 27642 | 33 | 1965.5 | 243133 | **After** | ms | queries | query (ms) | rows | | ---: | ---: | ---: | ---: | | 14344 | 33 | 1759.6 | 243133 | | 14631 | 33 | 1729.0 | 243133 | | 13405 | 33 | 1752.3 | 243133 |
- Loading branch information