-Os and -O2
Hello. Current GRUB2 optimisation strategy is to compile whole grub with -Os but only kernel, bus modules, disk modules, partmap and fs modules have size concerns. Graphical modules have speed concerns. So I propose following optimisation strategy:
-Os for kernel, bus modules, disk modules, partmap and fs -O2 for other modules
Signature · 4 lines
Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
Review
Quoted 6 lines · Vladimir 'phcoder' Serbinenko
Hello. Current GRUB2 optimisation strategy is to compile whole grub with -Os but only kernel, bus modules, disk modules, partmap and fs modules have size concerns. Graphical modules have speed concerns. So I propose following optimisation strategy:
(quoted diff) +0
-2-Os for kernel, bus modules, disk modules, partmap and fs -O2 for other modules
Size also affects load time, which is slow because we rely on non-free firmware code for it (BIOS, EFI...).
A proposal to change this should be accompanied by some benchmarks on real hardware.
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."