From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2661 invoked by alias); 17 May 2017 14:20:31 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 41116 Received: (qmail 8243 invoked from network); 17 May 2017 14:20:31 -0000 X-Qmail-Scanner-Diagnostics: from aok120.rev.netart.pl by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(85.128.245.120):SA:0(0.0/5.0):. Processed in 1.535971 secs); 17 May 2017 14:20:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: psprint@zdharma.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at zdharma.org does not designate permitted sender hosts) X-Virus-Scanned: by amavisd-new using ClamAV (4) Date: Wed, 17 May 2017 16:20:19 +0200 From: Sebastian Gniazdowski To: zsh-workers@zsh.org Message-ID: In-Reply-To: References: Subject: Re: Naive question: how hard are namespaces for functions X-Mailer: Airmail (231) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Maybe the post was too long, sorry. I just want to say that this: - completions ls /usr/local/share/zsh/5.3.1-dev-0/functions =7C grep -c '= =5E=5F' =3D=3D 801, - autosuggestions plugin =24=7B=23functions=5B(I)=5Fzsh=5Fautosuggest*=5D= =7D =3D=3D 253 - zsh-syntax-highlighting, =24=7B=23functions=5B(I)=5Fzsh=5Fhighlight*=5D= =7D =3D=3D 250 is a serious not-nice thing. Maybe namespaces are easy=3F Other question is performance. Doing 1304 iterations of function adding, = how much does it cost: % zmodload zsh/zprof; () =7B source =7E/.zcompdump; =7D; zprof ... 1) =C2=A0 =C2=A01 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A055,89 =C2=A0 =C2=A055= ,89 =C2=A0100,00% =C2=A0 =C2=A0 55,89 =C2=A0 =C2=A055,89 =C2=A0100,00% =C2= =A0(anon) Well that's not much, but this=C2=A01304/801.0 * 55 =3D 89.5, that is I w= ould say something, almost 100 ms. On 15 maja 2017 at 10:39:40, Sebastian Gniazdowski (psprint=40zdharma.org= ) wrote: > Hello, > writing something sophisticated involves multiple functions. E.g. I hav= e 47 interactive-mode =20 -- Sebastian Gniazdowski psprint /at/ zdharma.org