Matthew Woehlke wrote:
> Chet Ramey wrote:
>> I'm sure there are efficiency improvements possible in the bash indexed
>> array implementation, but sequentially accessing a data structure
>> optimized for space and sparse arrays is never going to be as fast as
>> a read-process loop, and that difference becomes more and more apparent
>> the larger the array.
> 
> Maybe bash should remember the last position to optimize accessing the
> next element?

I already took a couple of hours and implemented something like this.  It
will be in the next version.  Sequential access performance is
dramatically improved.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/


Reply via email to