We have a structural problem
Created by: Huluti
Hi!
I think that we have a problem with the structure of the project. The whole structure is based on the principle of recursion. @papajoker has tried to show it in this comment: https://github.com/Chrysostomus/manjaro-architect/issues/71#issuecomment-282832254.
Here the track of the program it obtains when logging:
02/22/17 18:28:15 [rank mirrors][1] --configure_mirrorlist()<-configure_mirrorlist()<-install_base_menu()<-main_menu_online()<-check_base()<-main_menu_online()<-check_base()<-main_menu_online()<-prep_menu()<-main_menu_online()<-check_base()<-main_menu_online()<-prep_menu()<-prep_menu()<-lvm_create()<-lvm_menu()<-prep_menu()<-luks_menu()<-luks_open()<-luks_menu()<-prep_menu()<-mount_partitions()<-prep_menu()<-select_device()<-prep_menu()<-main_menu_online()<-main()]
When you can make loops, you redo calls to the function. In the program for example it is very true for the menus. The path taken by the program is far too complex.
I do not have a good enough level to help you code, but only at the algorithmic level I think there is way to improve the structure.
Tell me if I miss something.
Thank's!