Mathieu Desnoyers 32d97497cb templates/linux_xen: Fix quadratic algorithm for sorting menu items
The current implementation of the 20_linux_xen 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 their boot partition.

This fix is ported from the 10_linux script, which has a similar
quadratic code pattern.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: xen-devel@lists.xenproject.org
Tested-by: Jason Andryuk <jandryuk@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2022-07-04 14:43:25 +02:00
..
2010-09-15 14:46:53 +02:00
2022-03-14 16:01:07 +01:00
2022-03-14 16:01:07 +01:00
2019-03-25 15:08:49 +01:00
2022-03-14 16:01:07 +01:00
2013-11-07 06:35:50 +01:00
2022-03-14 16:01:07 +01:00