From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Optimising Elisp code [again] Date: Mon, 08 Oct 2018 20:38:45 -0400 Organization: A noiseless patient Spider Message-ID: References: <8hxojvzzzzzz.m4h.xxuns.g6.gal@portable.galex-713.eu> <20181006192457.GB7368@tuxteam.de> <86lg79yl54.fsf@zoho.com> <86o9c5rbm8.fsf@zoho.com> <86va6cplz1.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1539045513 7178 195.159.176.226 (9 Oct 2018 00:38:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 9 Oct 2018 00:38:33 +0000 (UTC) User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 09 02:38:28 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9g2e-0001mp-GN for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Oct 2018 02:38:28 +0200 Original-Received: from localhost ([::1]:48913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9g4k-0004Pr-OC for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Oct 2018 20:40:38 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!178.20.174.197.MISMATCH!feeder3.usenet.farm!feed.usenet.farm!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-Injection-Info: barmar.motzarella.org; posting-host="904b341363440b477416fe1bbaaff5ba"; logging-data="22298"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18SWCBbd7kwojXyNFg8jSk4" Cancel-Lock: sha1:V7m+40vGEB/DJb3nj97mCRm8mog= Original-Xref: usenet.stanford.edu gnu.emacs.help:224095 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118221 Archived-At: In article , wrote: > On Mon, Oct 08, 2018 at 04:11:14PM +0200, Emanuel Berg wrote: > > Garreau, Alexandre wrote: > > > > > I kind of forgot why jumps are slow > > > > Isn't it as simple as all the overhead of > > placing the new function on the stack with > > return pointers and stuff? > > And cold caches, and pipeline stalls and... > > Modern processors are quite complex beasts, and much of it has to > do with the sad fact that RAM is much, much, MUCH slower than the > CPU, and they try to lie to you about it... Since we're talking about a byte-code interpreter, not machine code, the pipeline is probably not relevant. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***