Lennart Schultz wrote:
> It seems that mapfile is OK for small numbers but for bigger numbers it
> starts to compsume time.
Not exactly. Your own timing tests show that mapfile itself is blindingly
fast. The time is consumed sequentially traversing the (very large) array.
Bash indexed arrays ar
It seems that mapfile is OK for small numbers but for bigger numbers it
starts to compsume time.
I made a litle test:
rm Xyz; unset MAPFILE # clear
max= # set limit
time for i in $(seq 0 $max); do echo 'Xyz' >> Xyz; done
real0m0.490s
user0m0.304s
sys 0m0.124s
time mapfile < Xyz