zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] zrealloc on array+=( )
Date: Sat, 4 Mar 2017 09:22:26 -0800	[thread overview]
Message-ID: <170304092226.ZM23592@torch.brasslantern.com> (raw)
In-Reply-To: <1488635259.1730344.900251328.5D6F1325@webmail.messagingengine.com>

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 ...


  reply	other threads:[~2017-03-04 17:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-04 13:47 Sebastian Gniazdowski
2017-03-04 17:22 ` Bart Schaefer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-02-26 12:06 Sebastian Gniazdowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=170304092226.ZM23592@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).