On Mon, Jul 17, 2017 at 11:57:02AM +0300, Vadim Zhukov wrote:
> > + for _liba in /usr/lib/lib{c,crypto}; do
> > + _libas="$_libas $(ls $_liba.so.+([0-9.]).a | sort -V | tail
> > -1)"
> > done
> > + _libas=${_libas# }
> >
> > # Remount read-write, if /usr/lib is on a read-only ffs filesystem.
> > if [[ $_mp == *' type ffs '*'read-only'* ]]; then
> >
>
> As a matter of microoptimization we could use "sort -rV | head -1"
> instead of "sort -V | tail -1". I'm okay with current version of this
> diff already, though.
Sorting requires to read the entire input, otherwise you'd only sort a
subset of the input. I don't see anything being optimized here.- rc: reorder_libs: [2/2] Pick archive versions more efficie... Klemens Nanni
- Re: rc: reorder_libs: [2/2] Pick archive versions mor... Theo Buehler
- Re: rc: reorder_libs: [2/2] Pick archive versions mor... Robert Peichaer
- Re: rc: reorder_libs: [2/2] Pick archive versions... Theo Buehler
- Re: rc: reorder_libs: [2/2] Pick archive versions... Klemens Nanni
- Re: rc: reorder_libs: [2/2] Pick archive vers... Robert Peichaer
- Re: rc: reorder_libs: [2/2] Pick archive ... Klemens Nanni
- Re: rc: reorder_libs: [2/2] Pick archive versions... Klemens Nanni
- Re: rc: reorder_libs: [2/2] Pick archive vers... Robert Peichaer
- Re: rc: reorder_libs: [2/2] Pick archive vers... Vadim Zhukov
- Re: rc: reorder_libs: [2/2] Pick archive ... Klemens Nanni
- Re: rc: reorder_libs: [2/2] Pick arc... Vadim Zhukov
- Re: rc: reorder_libs: [2/2] Pick... Klemens Nanni
- Re: rc: reorder_libs: [2/2] Pick... Theo Buehler
