Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

very slow cartesian config resolution #1368

Open
bonzini opened this issue Jan 17, 2014 · 1 comment
Open

very slow cartesian config resolution #1368

bonzini opened this issue Jan 17, 2014 · 1 comment
Assignees

Comments

@bonzini
Copy link
Contributor

bonzini commented Jan 17, 2014

This is the "bad" config:

only Fedora.9, Fedora.13, Fedora.16, Fedora.19, WinXP.i386.sp3, Win2003.i386, Win2003.x86_64, Win2008.i386.sp2, Win2008.x86_64.r2, Win7.i386, RHEL.4.8, RHEL.5.10, RHEL.6.5

unattended_install:
    only default_install

Fedora, RHEL:
    only virtio_net
    only virtio_blk
    only extra_cdrom_ks
Windows:
    only rtl8139
    only ide
    only floppy_ks

only unattended_install.cdrom

no Win7

It takes 15 seconds to resolve on a very fast machine. Changing "Fedora, RHEL" to just "Linux" brings the time down to 1.2 seconds. Removing the last line brings the time down to 6 seconds.

@lmr
Copy link
Member

lmr commented Jan 17, 2014

I guess this is a corner case of the parser. In fact, parser resolution is an NP-complete problem, and we just happen to live in a space where the resolution of the problem approximates polinomial time.

@jzupka jzupka self-assigned this Feb 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants