]> xenbits.xensource.com Git - libvirt.git/commit
conf: decrease iterations complexity when formatting iothreads
authorPeter Krempa <pkrempa@redhat.com>
Mon, 21 Mar 2016 16:04:35 +0000 (17:04 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 29 Mar 2016 19:26:06 +0000 (21:26 +0200)
commit0b4b58690d61e5b23cca24eec9912791cf4c21a3
tree7fdb386aca6ab3dcb20d4f1a08ae97c881c684bd
parent917426c8d7dd26f13142fc4c5c1a8a19137ac647
conf: decrease iterations complexity when formatting iothreads

Create a bitmap of iothreads that have scheduler info set so that the
transformation algorithm does not have to iterate the empty bitmap many
times. By reusing self-expanding bitmaps the bitmap size does not need
to be pre-calculated.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1264008
src/conf/domain_conf.c