Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: High memory usage on // substitution in one situation, normal usage in other
- X-seq: zsh-workers 41137
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: High memory usage on // substitution in one situation, normal usage in other
- Date: Mon, 22 May 2017 08:50:21 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=sadpNT qXOID4qubmWRNj9N4ct7rw6TkSncAHQSuxFJw=; b=Rv13/+0oNs4z0nSjLRc84n kqBeQgRUx1dKmspxu3gV79lt8i22waJLVm4XDpZk8fkSUif9xXbt3qLezedqtJ/p nVkv3/vWLCsPgQlPtFjdQNQOGQqNgSz4H5LzyCnLi9733DmSWEQjTmVBImDFYHgR Y8PWrUg76eB4oe69ejojR+fRZk4DAdI6W1h4V0YFxURVfEItWnXnc3mKGvvvWeAp skkRo8F2SUoOuFijboQrTQmdK8q4vTEk3c0VIRZwUCnHDoWxn4qjilOlntKmGTfk ArFyqNfnaiSdGctTSL12B//n9v09BKFP3v70nypRkLlkRZs+zYABcDWvF7BORqzg ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=sadpNT qXOID4qubmWRNj9N4ct7rw6TkSncAHQSuxFJw=; b=L90WDsDIooeZT8+nmBxpl6 OBTx2M41yVEH9ilwY238XMxmD9uECeXuCCTzphj6JvXIm/SEUPhOCQaGjm8G5T2n ZH7jlv6cSCLTIRiWar0GGGArAmXVMb4fZR54MrwxrR4gg4uZTLh9oopvcbuu6RNd Z9SADId5wE+ZAHnC5/taA5OJEqkpdsshotOG+8eLkJp9xgFN0LaTOpLf9UQ9vEok D/HxHuSwSzntuvICZPmKekFaywFWdKsP4v6T7e8dJzsA4ThDgKO5VTTvJ8ByNG92 cZtLIcbxQHlIbd+CbkQT/giG6B3vhOMVhNgNfc3k3sHrGZz6q+egdL9lZ9xeji7A ==
- In-reply-to: <170521164322.ZM5074@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <etPan.59214193.41a7c4c9.6b4c@MacMini.local> <170521130349.ZM4506@torch.brasslantern.com> <201705212227360937.046E4951@gateway.core.mpy.ch> <170521164322.ZM5074@torch.brasslantern.com>
Bart Schaefer wrote on Sun, 21 May 2017 16:43 -0700:
> The state that is being saved includes the entire tail of the string from
> that point onward, so in the first example it requires approximately
> 1.8MB/2*(the number of zeroes in all integers from 1 to 200000),
The figure in parentheses is:
% print {1..200000} | tr -dc 0 | wc -c
88894
(So we can compute the exact predicted memory use and compare it to the
observed use.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author