Re: [PATCH v5 3/5] grub-mkconfig hurd: Fix quadratic algorithm for sorting menu items

2022-06-13 Thread Mathieu Desnoyers
- On Jun 11, 2022, at 7:55 PM, samuel thibault samuel.thiba...@ens-lyon.org wrote: > Hello, > > Mathieu Desnoyers, le jeu. 09 juin 2022 14:50:22 -0400, a ecrit: >> The current implementation of the 10_hurd script implements its menu >> items sorting in bash with a quadratic algorithm, callin

Re: [PATCH v5 3/5] grub-mkconfig hurd: Fix quadratic algorithm for sorting menu items

2022-06-11 Thread Samuel Thibault
Hello, Mathieu Desnoyers, le jeu. 09 juin 2022 14:50:22 -0400, a ecrit: > The current implementation of the 10_hurd script implements its menu > items sorting in bash with a quadratic algorithm, calling "sed", "sort", > "head", and "grep" to compare versions between individual lines, which > is an

[PATCH v5 3/5] grub-mkconfig hurd: Fix quadratic algorithm for sorting menu items

2022-06-09 Thread Mathieu Desnoyers
The current implementation of the 10_hurd script implements its menu items sorting in bash with a quadratic algorithm, calling "sed", "sort", "head", and "grep" to compare versions between individual lines, which is annoyingly slow for kernel developers who can easily end up with 50-100 kernels in