Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] zrealloc on array+=( )



On Mar 4,  5:47am, Sebastian Gniazdowski wrote:
}
} I revisited the patch, tested with debug prints, added test cases that
} stress things out. No code changes.

For the record, this looks fine, I don't see any reason not to pick
it up.

} We can leverage the fact that operating system has size of the array
} and can extend it, and this way beat Bash.

IIRC bash implements arrays sparsely as linked lists, so is going to
differ entirely from zsh in memory-use/execution-speed profile for
various array operations.  "Beating" bash on some specific usage is
not especially meaningful.

} Of course, the real deal here is to be able to do
} data processing, e.g. log gathering, etc.

Which is not really what shells are intended to be used for ...



Messages sorted by: Reverse Date, Date, Thread, Author