From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: Why is Elisp slow? Date: Sat, 04 May 2019 13:55:10 +0200 Message-ID: <87ftpujuxt.fsf@mbork.pl> References: <86pnwkpltx.fsf@zoho.com> <8636tgphps.fsf@zoho.com> <86o9c4np6q.fsf_-_@zoho.com> <8636tfocyl.fsf@zoho.com> <20190502075617.GA18331@tuxteam.de> <874l6d3ylg.fsf@mbork.pl> <20190502131827.GA28987@tuxteam.de> <83k1f8q39o.fsf@gnu.org> <87zho43c13.fsf@mbork.pl> <83v9ysod37.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="207701"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 04 13:56:50 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMtHd-000rw1-1Z for geh-help-gnu-emacs@m.gmane.org; Sat, 04 May 2019 13:56:49 +0200 Original-Received: from localhost ([127.0.0.1]:55124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMtHb-000561-Qr for geh-help-gnu-emacs@m.gmane.org; Sat, 04 May 2019 07:56:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMtHL-00055t-EN for help-gnu-emacs@gnu.org; Sat, 04 May 2019 07:56:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMtHK-0005G5-Bq for help-gnu-emacs@gnu.org; Sat, 04 May 2019 07:56:31 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:50742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMtHI-0005Et-MV; Sat, 04 May 2019 07:56:28 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 0C015E6722; Sat, 4 May 2019 13:56:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fooYBXHKvhfv; Sat, 4 May 2019 13:56:24 +0200 (CEST) Original-Received: from localhost (83.25.57.1.ipv4.supernova.orange.pl [83.25.57.1]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 2A788E63F4; Sat, 4 May 2019 13:56:24 +0200 (CEST) In-reply-to: <83v9ysod37.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.110.48.8 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:120186 Archived-At: On 2019-05-02, at 21:45, Eli Zaretskii wrote: >> From: Marcin Borkowski >> Cc: help-gnu-emacs@gnu.org >> Date: Thu, 02 May 2019 21:13:28 +0200 >> >> > It's certainly a reason to report this to the Org developers, and ask >> > them to speed this up. >> >> Well, I don't consider it a bug in Orgmode - rather a bug in my workflow > > Maybe improvements in Org could make your bug less prominent... > > Then again, it could be that there's some trick up Org developers' > sleeve that they could teach you. As it was already said, there's probably not much room for optimization here - it was raised many times on the Org-mode mailing list. > In general, anything surprising/inconvenient/buggy should be reported, > you can never know what will come out of that. > >> > (My personal rant to package authors is that they are way too eager to >> > implement stuff in Lisp which cannot possibly be fast enough or >> > scalable enough, instead of urging Emacs to provide new C primitives >> > and core features, or, better, submitting patches to implement such >> > features in C. Two cases in point are linum-mode and fci-mode. End >> > of rant.) >> >> That is an interesting POV, although I'm not sure if I agree. IOW, >> I fully understand why people might do so. I, for one, consider myself >> pretty fluent in Elisp and hardly literate in C. > > Submitting changes in C is a bonus, it's good enough to describe the > use case and ask for primitives to support it. Someone else might get > motivated. It could even be very easy, like with fci-mode. > > I'm quite sure that some of the bad reputation of Emacs is due to > incredible things people do in Lisp, which then make Emacs look > sluggish and bloated. Possibly. Still, I guess I never coded something inefficient/big enough to need the speedup from a potential new C-level feature. Though I'm going to remember what you said here, just in case. Best, -- Marcin Borkowski http://mbork.pl