From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Boyer Newsgroups: gmane.emacs.devel Subject: Re: Some thoughts about Emacs performance Date: Mon, 19 Feb 2024 13:05:28 -0600 Message-ID: References: <87zfvweiy6.fsf@localhost> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000250e260611c0c985" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8386"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Simon Leinen , Emacs developers To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 19 20:22:51 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rc9E3-0001w3-1D for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Feb 2024 20:22:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rc9Du-0000z0-It; Mon, 19 Feb 2024 14:22:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rc8xu-0002wA-Eg for emacs-devel@gnu.org; Mon, 19 Feb 2024 14:06:10 -0500 Original-Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rc8xs-0006a3-JQ for emacs-devel@gnu.org; Mon, 19 Feb 2024 14:06:10 -0500 Original-Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a3ea7616097so150751866b.1 for ; Mon, 19 Feb 2024 11:06:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708369567; x=1708974367; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WfnbIAeI/eEuCYtrUgVtYmyd4eXy3LQjyakOoTstlKc=; b=ZDyYsfhoi8vfP1GLb55Q729D9/mhHDR3Y1psTCEWsHHdAwljfaN0feEXP9NiiyIWhr TMTYgJpvaIfNuUf5df6fXuuanAiQSI0l8Umkp6/4cAWlbAvp3rZty/lx4B9rMOkAUVj5 urZjw88bWuBTm2b6yVa7itJiQaYk0ad0ZJ+BOLKVjhFoLlyvEBbyrfkmIPwMEdKm4B4w PH1ORQnXkJ4v204c+jdAAY09EImkh+nwxoJxc1mnsVYyUGrA8qMjww9/a/GIbZoeM9e7 Mc3aq699LUBWIgA2zcN+tyr7cQZ4/YO+nN0YW2OShrQ8n0YgUUGOKfZnv6Fewbomy2g/ 61Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708369567; x=1708974367; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WfnbIAeI/eEuCYtrUgVtYmyd4eXy3LQjyakOoTstlKc=; b=XWK9RZ1QqENzps8EeCIKfQdcwAd/0tY/FSDEPk+tvDH8egRb/AYkzdH/ELttTVZOx+ OvkYl8JnwnJyyZZSu+dLDA+yrlLD2sbK9iN6hG2RD4I/6L7GRSCGlDfWT8vFh1j/CPZk IzjXb3lYy3iBnye54BnF/WSmrUT7ddI9M4/2wvcEOoDjfI2t/9WGidtzqqYfMjeS0z2z pT/oybv1tPDsBu/MHrRf2GQSgoGpRi/OexPRK0gx6ZMW3KYyCRgkiX2nb8pkEhyMG319 Gw3F69U3dNNNBfg+cof0iVT8DdQbh6HeTJf0jjJxNbqci2sF1v1q7pK6xBsGrJX8cL0n 2IMg== X-Forwarded-Encrypted: i=1; AJvYcCUkGFIJswNBvOjpmHzt87onp4GgoMgQoJCIkDsORtVKn/TYlt9pRGMNWZtBr7n19J9+XtvWoagaFWNCynJ5r6XuULpJ X-Gm-Message-State: AOJu0YxugmLpFwd7PTQ9ib/Sp4MXUI3VKtg/Vt8fOIrFmXgETPSzXbf6 g7aPohgHCVgUIWu1gJVaQaYNd6zSmZs0mthhE4R4nwcWY5BSYu9DSgm1oofcqLAjmQGw8fl8qT/ 6k/1kgbnqObix8gW34YA/bv1sZ0I= X-Google-Smtp-Source: AGHT+IH8e2qa27Wf+iOuHT8mOrtXaNUJjR2uheCn3ZMECv1JfZMYjIBbc7bsgl6suNsIAeXFUMQ/ZiGmuAC3yycNS6k= X-Received: by 2002:a17:906:2287:b0:a3e:6168:db5d with SMTP id p7-20020a170906228700b00a3e6168db5dmr3188763eja.17.1708369566304; Mon, 19 Feb 2024 11:06:06 -0800 (PST) In-Reply-To: <87zfvweiy6.fsf@localhost> Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=robertstephenboyer@gmail.com; helo=mail-ej1-x632.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 19 Feb 2024 14:22:40 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:316369 Archived-At: --000000000000250e260611c0c985 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > Another option might be contributing to Emacs C sources. Surely you're joking, Mr. Feynman. 1. sort in Emacs is, I do believe, written in C and seems ok, but could be improved. 2. You probably cannot imagine, in this day, how totally ignorant I am of C! It is unforgivable. > it is not yet clear how long it will take to implement type declaration support. My bet is that it will be a long time coming, from the vibes I get. But what do I know? Bob On Mon, Feb 19, 2024 at 6:25=E2=80=AFAM Ihor Radchenko wrote: > Robert Boyer writes: > > > I say I fear for the worst because if that bug is what I think it is, i= t > > would kill 'msa' performance. > > Very secondarily, even if the bug is fixed, I have no idea how I could > ever > > take advantage of it! > > As Andrea mentioned in > https://yhetil.org/emacs-devel/yp1cyssanrp.fsf@fencepost.gnu.org/, type > declarations are not yet supported and it is not yet clear how long it > will take to implement type declaration support. > > If you wish to contribute a better sorting to Emacs, another option > might be contributing to Emacs C sources. Check out src/sort.c file > (tim_sort) for the sort implementation that is currently in use. > https://git.savannah.gnu.org/cgit/emacs.git/tree/src/sort.c#n915 > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --=20 Anything I seem to state should be taken as a question. I am at least 77 and feeble. --000000000000250e260611c0c985 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Another option might be contributing to Emacs C sourc= es.=C2=A0

Surely you're joking, Mr. Feynman.=C2= =A0 1.=C2=A0 sort in Emacs is, I do believe, written in C and seems ok, but= could be improved. 2. You probably cannot imagine, in this day, how totall= y ignorant I am of C!=C2=A0 It is unforgivable.

&g= t; it is not yet clear how long it will take to implement type declaration = support.

My bet is that it will be a long time= coming, from the vibes I get.=C2=A0 But what do I know?

Bob


On Mon, Feb 19, 2024 at 6:25=E2=80=AFAM Ihor= Radchenko <yantar92@posteo.net> wrote:
Ro= bert Boyer <robertstephenboyer@gmail.com> writes:

> I say I fear for the worst because if that bug is what I think it is, = it
> would kill 'msa' performance.
> Very secondarily, even if the bug is fixed, I have no idea how I could= ever
> take advantage of it!

As Andrea mentioned in
https://yhetil.org/emacs-devel/yp1c= yssanrp.fsf@fencepost.gnu.org/, type
declarations are not yet supported and it is not yet clear how long it
will take to implement type declaration support.

If you wish to contribute a better sorting to Emacs, another option
might be contributing to Emacs C sources. Check out src/sort.c file
(tim_sort) for the sort implementation that is currently in use.
https://git.savannah.gnu.org/cgit/em= acs.git/tree/src/sort.c#n915

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>


--
Anything I seem to state should be taken as a question.=C2= =A0 I am at least 77 and feeble.
--000000000000250e260611c0c985--