From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: igc, macOS avoiding signals Date: Mon, 30 Dec 2024 07:16:23 +0100 Message-ID: References: <799DDBC5-2C14-4476-B1E0-7BA2FE9E7901@toadstyle.org> <87h66ng4bf.fsf@protonmail.com> <3A7135F0-64AD-4577-BDA7-ACE1E60B7364@toadstyle.org> <87jzbid6hm.fsf@protonmail.com> <87frm62s27.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36983"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Sean Devlin , emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 30 07:17:22 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 1tS95e-0009VE-N0 for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Dec 2024 07:17:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tS94q-0000Gh-Ic; Mon, 30 Dec 2024 01:16:32 -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 1tS94o-0000G9-PB for emacs-devel@gnu.org; Mon, 30 Dec 2024 01:16:30 -0500 Original-Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tS94n-000751-3k for emacs-devel@gnu.org; Mon, 30 Dec 2024 01:16:30 -0500 Original-Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5d8de655efaso39229a12.1 for ; Sun, 29 Dec 2024 22:16:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735539387; x=1736144187; darn=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=OCFR5zMgrolEV0i672JML8f20te+qLxTAzeARZUMxW4=; b=lKzku+KBron8LybX+j/+TOaOxtysobwU76UW1WAtIUSf7HjHIYryyOgmx1QJNwLo21 yyoPWZs2vwMBm5k+Ppd7qBkRExW0U34w/kRMDi77/E2xy2GwfTkPdC/q73y8h86WzTaA q/wKwgifoWpcTvk+Y9lX0dbbQrid9bq0OltBOOe72ZyLiULiuRG0MY0oAiocKmFvayLH tH7cA2yMcxG174VzdOWbbC5fL71WF9Utv5WbPAg6SQXyybV9re2uqxv/GLjCGX/jrpSP LgbknUPw9/odbkmRAZ9lax22TusTGMerr6yQxXDJJDORkyceh50Y4YMXBWxpUgme9Qis ygwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735539387; x=1736144187; 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=OCFR5zMgrolEV0i672JML8f20te+qLxTAzeARZUMxW4=; b=bTIwEq19bpm5AxKYbsjIThZ6YBpgYvUfJcJ4xxJWdALwkg6/B3aTaExHzQuYBbdnxd m2H+y7ph2ZGhuTQAR8A/+2I7g1U6SC/3xx8gi+4m5iWFGQ/p5dtIBCfzB78mPKLgpYPq Tq8bNzu+oAsh6qDVM4iqT8XQlqBHjtZMhaQ6jNE9q9QShHX1nArO6zpak0gLxdcn0a7P n4htK8lpxJBss5LL2J9SyjD1xzRcBif5jlu8+YEXNoRC9x5Z8UYX30wJu35gglDYroRd vhVbjtB9A2RYk/CkthHNw1PbUlvGVkSiEdeNpm7eBF915GJt44UpfV3jMkMn5oQMnxhd TDeA== X-Forwarded-Encrypted: i=1; AJvYcCXOYp+w85kjS5ZgaJV2FVJSp3IHO4wS697vmMGouj4qNR5jtAywdNsXyO3ZXWes1qJnoWsOmPcypzdNUA==@gnu.org X-Gm-Message-State: AOJu0Yzl6/I4i+ZDBUDIHy1qdDxc6nQGiiI3fYwGo/ve1UUjZSFgniLj DvzWFVU9chEOu4hQZeTUEPpJkP/sXBncepT+d53Yqr8lXQ59cwxT7GQk1Q== X-Gm-Gg: ASbGnct/jOApaYP+Rx4JvSHAFLP91Zx1ZJaR4yuGzNXFw3bQZO7mM9ap7VcCu03eQnv rb2m41SujJ+soPbACJqM5hC4Nrmyrifqfca9RPyqECZe6fg6eEch1L8/sCI7dkFyZG3SKCRH6qw 8RZ/bMnpjPJwJAaonz/p6tvwdea7juSgGZyZcC3UJM2bpNlgbfXWc3CeZDDsatlp25+fgHEhhN4 y/CLiHGAQE2RMawnR7lrKvWmZZqLc4IEbVDP8FxrNFw3Aa/yTsOeWQBsrQQGqQYgN9BB8vGQfnk gB8g+Lfy2ms4YquWUIa4gNAYSedbUKKVoO8Vy86IpL1ksOMmajSaoAQX2I5IUgUW X-Google-Smtp-Source: AGHT+IHBfz/1kTG/P18amxBBr6CzDapXvE/wlG9QwQ+D/p12qS4wyG1oS2KNo1kmkSPycUzZDcjr8Q== X-Received: by 2002:a05:6402:5207:b0:5d0:bcdd:ff8f with SMTP id 4fb4d7f45d1cf-5d81dd5ed91mr30315581a12.4.1735539386517; Sun, 29 Dec 2024 22:16:26 -0800 (PST) Original-Received: from pro2 (p200300e0b7156f000dceccb84ca1ba38.dip0.t-ipconnect.de. [2003:e0:b715:6f00:dce:ccb8:4ca1:ba38]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d80679f900sm14332456a12.53.2024.12.29.22.16.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Dec 2024 22:16:25 -0800 (PST) In-Reply-To: <87frm62s27.fsf@protonmail.com> (Pip Cet's message of "Sun, 29 Dec 2024 19:44:40 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x532.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:327386 Archived-At: Pip Cet writes: > Speaking of running with a "normal" config: something about my > configuration makes buffer_step (the balance_intervals call, in > particular) take forever, to the point the mps build becomes unusable. > The buffer in question, when I caught it, is an M-x shell buffer of size > 8 MB, so I don't understand why it's taking so long. > > Still investigating, but skipping the buffer_step seems to help. balance_intervals means text properties. The only candidate I see in comint/shell is ANSI escapes. That could be turned on/off with M-x ansi-color-for-comint-mode-xy. Only as a workaround, and maybe to check if it's that. What I do in buffer_step in idle time is basically one step of what the old GC does in sweep_buffers. My expectation was that balancing a tree couldn't take long, and that this is not called often enough to be a problem if were expensive. Both wrong, as usual. Not calling balance_intervals is, BTW, not a catastrophic problem. if one does anything leading to a graft_intervals_into_buffer, w It's BTW well possible that I myself put that balancing into sweep_buffers because of redisplay, I seem to remember that. The interval tree has always been a source of fun. I hope, some day, some kind soul will eradicate it like the GCPROs. In any case, what's a solution? Right now I'm tending to put the balance_intervals in an if so that one can turn it on/off with a Lisp variable. Default would be to not to balance, because I think the problems with degenerated interval trees in redisplay where rare, and I don't remember problems outside of redisplay. But that was an awful long time ago, OTOH. That would give us more time to think about a possible strategy to solve this. WDYT?