From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dalanicolai Newsgroups: gmane.emacs.devel Subject: Re: displaying margins leads to Emacs hanging Date: Fri, 24 Feb 2023 22:41:29 +0100 Message-ID: References: <83edqen95b.fsf@gnu.org> <838rgmn6y4.fsf@gnu.org> <83zg92lps8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009e75d205f578feb8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32191"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 24 22:42:16 2023 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 1pVfpY-0008Ac-Ee for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Feb 2023 22:42:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVfp6-0005dX-EP; Fri, 24 Feb 2023 16:41:48 -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 1pVfp3-0005d6-Kh for emacs-devel@gnu.org; Fri, 24 Feb 2023 16:41:45 -0500 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVfp0-0002eV-FM; Fri, 24 Feb 2023 16:41:44 -0500 Original-Received: by mail-wr1-x42d.google.com with SMTP id p8so480084wrt.12; Fri, 24 Feb 2023 13:41:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7bKzl4zsfRJIW2oVOnkEkg5Etew5bLwC1WTyJbXJLXU=; b=K0lOGT2jv8S/9IVWPpXu6l+002DP95pGN7K3vCZXJC8OKJgBBIGfphKePP5nKjStex 1eg8UNGEfM4oWW/L1wZIMolHVTMXWiOIj+ZaSEvlEM0Ec07wgmleNMoh990K7zaVWqDQ LjxvPkrYwQaDO6QI0bsi8+u9yo1WCqLC+262CL48ESds0TONKNxmzlsSpbNhFBza1A9g MhDz/RgqxKILuxVmVTTVZDE49kQAAmxT12rNf+xF/nqBUqs6pFCLFc5gfgfde0R4h3TN C2sr6CPNAbPsLa/LI7cbVWhOlCL/fvsgdU4z0zn3+qThTgvv4xPsm6I/vTi8pJAoYR1d p1UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=7bKzl4zsfRJIW2oVOnkEkg5Etew5bLwC1WTyJbXJLXU=; b=RkT1XlLA4L7DTrMxGioz2YJV4Pt5Sj60Vbq196NKqNIO/5uGlwjDbwXtHhf5TKQG0F hXe95zfALJIu5RWVbl+chEKyDveCS+E1xeGXl01HfO0f21VFG1mp/EegSN/ev94j7TWP XUZ2nbA0BarDQHPrzcxapVstbocoNyDQEmyLJkJKZoQK6ssAevnBcI1PKBGNG3mFfISC B7D6CAQUOl4jICT/kgm6GiF61t6eDGRPOcYCg4GoJ3R4BnCzBuPgvtvP9xNogRcpdoIF EfZXdznkLzO0hJTGaglLRZH9zGEMCqDdx0kTXeQ25BhC2JOsHZutP9n2wCoD/12O98/x 1S6g== X-Gm-Message-State: AO0yUKWdWMfBKvajMLyZKexFZdGeNjgXBkGEsYvPnS4tl9uvKyeJZi8X +lUM+sIksK39HokGdQ/kdG0WkBCMLC/6PNLuCsQBY/2F2xM= X-Google-Smtp-Source: AK7set8qSZazRjOeHk/5DtFBS27bDHLkvpBtjuQ6apltIzjwUKlxYs5Jz5VWOP4/48BbyPEQq3vnxR7/+JSkGpR4EOw= X-Received: by 2002:adf:fcc9:0:b0:2c7:156c:ae8d with SMTP id f9-20020adffcc9000000b002c7156cae8dmr942659wrs.2.1677274900230; Fri, 24 Feb 2023 13:41:40 -0800 (PST) In-Reply-To: <83zg92lps8.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=dalanicolai@gmail.com; helo=mail-wr1-x42d.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 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:303776 Archived-At: --0000000000009e75d205f578feb8 Content-Type: text/plain; charset="UTF-8" Great, thanks! Also, this kind of suggestions are very helpful. On Fri, 24 Feb 2023 at 22:25, Eli Zaretskii wrote: > > From: dalanicolai > > Date: Fri, 24 Feb 2023 21:41:59 +0100 > > Cc: emacs-devel@gnu.org > > > > I hope you might have an idea what causes this behavior. And maybe you > > have a suggestion how to prevent it. Furthermore, I guess the behavior > might > > be interesting for you to note/observe (but that is just a guess). > > I'll try to see if I can find something, but in general if some Lisp > program is very slow, the first thing that's advisable is to profile > it with profiler.el. > --0000000000009e75d205f578feb8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Great, thanks!

Also, this ki= nd of suggestions are very helpful.

On Fri, 24 Feb 2023 at 22:25, = Eli Zaretskii <eliz@gnu.org> wrot= e:
> From: da= lanicolai <da= lanicolai@gmail.com>
> Date: Fri, 24 Feb 2023 21:41:59 +0100
> Cc: emacs-dev= el@gnu.org
>
> I hope you might have an idea what causes this behavior. And maybe you=
> have a suggestion how to prevent it. Furthermore, I guess the behavior= might
> be interesting for you to note/observe (but that is just a guess).

I'll try to see if I can find something, but in general if some Lisp program is very slow, the first thing that's advisable is to profile it with profiler.el.
--0000000000009e75d205f578feb8--