From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#65908: 29.1.50; Emacs 29 regresses on macOS Date: Thu, 05 Oct 2023 16:01:52 +0200 Message-ID: References: <8875281f07b4d23d857c@heytings.org> <83o7hd4n5n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1804"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: ccsmile2008@outlook.com, Eli Zaretskii , 65908@debbugs.gnu.org, gregory@heytings.org, stefankangas@gmail.com To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 05 16:06:27 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qoOzi-0000CA-CG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Oct 2023 16:06:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoOwQ-0000Bz-5Y; Thu, 05 Oct 2023 10:03:02 -0400 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 1qoOw9-0008SA-Qg for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 10:02:51 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qoOw8-0003RX-21 for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 10:02:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qoOwP-0007ey-UW for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 10:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Oct 2023 14:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65908 X-GNU-PR-Package: emacs Original-Received: via spool by 65908-submit@debbugs.gnu.org id=B65908.169651455829412 (code B ref 65908); Thu, 05 Oct 2023 14:03:01 +0000 Original-Received: (at 65908) by debbugs.gnu.org; 5 Oct 2023 14:02:38 +0000 Original-Received: from localhost ([127.0.0.1]:48012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoOw1-0007eJ-7r for submit@debbugs.gnu.org; Thu, 05 Oct 2023 10:02:37 -0400 Original-Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:61768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoOvu-0007dz-Hy for 65908@debbugs.gnu.org; Thu, 05 Oct 2023 10:02:36 -0400 Original-Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5363227cc80so1648806a12.3 for <65908@debbugs.gnu.org>; Thu, 05 Oct 2023 07:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696514526; x=1697119326; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=CQDiNEOW2oyWixwP3VuVazcem8yE2zTup0Y66/b4bJw=; b=fmK5Hh+wkYTf49mAAIRHIlaZW4Vw7duauDI4iijC8OWVE1Q7eiKqAO64Aup9wkyQyL uAeyA3ZoCnUKJOn1ZjKnIqDh3eTVWD0YJV4sdnG0/gplNQbtT/R2C7NppT8P19sbWqu0 bCbS7eDC7smfQXmq7bSeEJjMbktTvJJ8+aI7qGn4c2zj+jAfnmeergZXhZV3mzvDQ4Mh 8mjPzgD7TM+HYGxxWuHDdJ0fu5kEhKiPo/aiPGYvMy2DxksU6sXnvou/PP7qmKFYS4q2 5PB/EUGKNl+Y8oxut54byAPXWwZzAwcUnEsTZEAhfFfDe6tyWehlVG05N1xmxYw1941j MOig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696514526; x=1697119326; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CQDiNEOW2oyWixwP3VuVazcem8yE2zTup0Y66/b4bJw=; b=uTVUoK/oe2s63Inng9jp5AV+8ZO4JappAzWCvuCqieQRjMhTw4Hx2+HDmWNxKLzH4D 5rmZ18SewZfmKSbiLxE3z6HJHMoHk8pXNGHW24D3ZOpe2WRcNxd8gGbcKcdax5WpdBTY Uq2KBdToAlilNMGeGf94VVyJvceUZ8LI4A/vF3f5lPLKkxHVAb15LJcaf5gI1f7664mQ vGBVEWMMCh3uuqXHnDuOb4BKJNzO9i/UtlA0OtiY6zmgvylE3h0kEfCypX1U4o29PGKd 6TFOF6sJSKKMGcRYNZ8lotHDoaLL8N8Hjkj+3jPbjVMP5XL061QotTgYg3FgDCderBkP 75QA== X-Gm-Message-State: AOJu0YxONnxGqqCyqdypSrboIMZPzwn5sRshrhSdZVpRAegKQXfLAsKb C4Ac5O2HTxowRs029BNpDn0= X-Google-Smtp-Source: AGHT+IEEs6ro8a4jVZjWwrzwY/PjIjbMoEXBF9vRDiyAAQNIXBhZiU5rZxhGkc6ryXVp0IE2TGUhxQ== X-Received: by 2002:aa7:cf92:0:b0:523:102f:3ce1 with SMTP id z18-20020aa7cf92000000b00523102f3ce1mr4873918edx.10.1696514514161; Thu, 05 Oct 2023 07:01:54 -0700 (PDT) Original-Received: from Pro.fritz.box (pd9e3618b.dip0.t-ipconnect.de. [217.227.97.139]) by smtp.gmail.com with ESMTPSA id d9-20020a05640208c900b005256771db39sm1134141edz.58.2023.10.05.07.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:01:53 -0700 (PDT) In-Reply-To: (Alan Third's message of "Thu, 5 Oct 2023 14:51:58 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271875 Archived-At: Alan Third writes: >> That's okay. What I meant was setting the old locale at the end. > > I've managed to reproduce this, and the time difference on my machine > is ridiculous. From 4 seconds without the setlocale calls to 24 > seconds with. > Holy cow! You mean you removed the setlocale at the end, or what did you do? > And that's with a legitimate, installed, locale ID in both cases. > > I wonder if this is why some people report Emacs 29 on macOS to be > noticeably slower. They, of course, blame the graphics changes, but > with that sort of variation in time... > >> > Out of interest, when is it slow? Is it when we have an invalid locale >> > ID? >> >> That's an interesting question--whatever I do on master, it's almost >> equally slow :-). >> >> It would be nice if I could get at least the right character encoding on >> my system... On the plus side, I at least know now what's happening, >> although I don't know what to do. > > Indeed. I'm tempted to say we should revert the change since I now > suspect I misunderstood how setlocale works when I wrote this and I'm > not sure it's actually improving anything. > > OTOH, it would be good if we could get this to actually work and > generate correct locale ID's for the system... But then, I don't know > what *is* a correct locale ID for a system like yours... Yeah :-(. AS I wrote in a different mail, even Terminal doesn't do it "right". And I can't even find anywhere what would be Apple's preferred way of doing this. >> Aprt from that, I'm currently trying to get profiling working on my old >> Macbook Pro, to compare the profiles of the 2 commits on emacs-29 which >> show the difference. That could maybe answer your question. >> >> Buhut... I can't currently get Instruments to work, which might be >> related to the fact that I've updated my unsupported by Apple Macbook to >> Sonoma with OCLP. Buhut -- maybe the new thunderbolt/magsafe cable for >> my display arrives soon, so that I can use my Mac mini again. A lot of >> construction sites ahead :-). > > I couldn't even get the old commit to build, I had to use the current > master and just revert to see the difference. So best of luck! :) Thanks :-).