From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 24713 invoked from network); 22 Apr 2020 14:59:27 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with UTF8ESMTPZ; 22 Apr 2020 14:59:27 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1jRGqT-0007TR-Ke; Wed, 22 Apr 2020 09:59:25 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jRGqQ-0007QX-4c for ding@lists.math.uh.edu; Wed, 22 Apr 2020 09:59:22 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jRGqO-0001GO-OP for ding@lists.math.uh.edu; Wed, 22 Apr 2020 09:59:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=rru8vPAQ+lr05T6G7gDHsPNVHfAVBp0TC6C/FTEPsUc=; b=uTe4IRzhPfSqRaaSnbuMydJe5s YhrvXYwpb4QosJ9cC0DLR90CDUXEsHR9yk3abJl4lvDh/4hd2kvkhGC1Bbe6N1FeeStbR2y3WU6/2 pHwINIeKyACjyizV3wJXvqkMt9Z4OxXo0lUyBuAQR8H0pOHJmBtLTni4ghVWxF+f9+a0=; Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jRGqH-0003PK-2X for ding@gnus.org; Wed, 22 Apr 2020 16:59:16 +0200 Received: by mail-wr1-x42a.google.com with SMTP id d15so1173016wrx.3 for ; Wed, 22 Apr 2020 07:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=rru8vPAQ+lr05T6G7gDHsPNVHfAVBp0TC6C/FTEPsUc=; b=PLo81h4cBBsFTuNmO2LqsFFbyN2iIX9bo+4W0Aa/KdqATAQRp5jJpRqArUDtu6X29D jdqyCJ2vRChdPT5/dtfOHzaYdu+eliePF7TUgON0PwbWYk1kLcrOWLo4uOabGx5k/lmI 8aOPGOWAj4j0gsB+t24ARxiTpu4LsoIWGyi91/PqhxZoypVJPTjqHX0tgmkL4J2wGoXR EojLs9+wbC3VOuQ8Jnsp8eWsr1vAASyQwH10R2smNF0rGUJ+Gp1XSuNsSU1xK+16/Hxu GQE4p4RY3wQ86Rn+CUbqoIQaH8avVOVR69PYD60jFEJbn43OWV3P+6qsIO1zJdBekCAv Yn4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=rru8vPAQ+lr05T6G7gDHsPNVHfAVBp0TC6C/FTEPsUc=; b=Nfbahvy4cGWz9ZJ+Suc7q/jYoEqwceGLFQAh+p86cExu0jvpKSahUnW/CVF83tGQ35 ZCamW0jo7jK0BSTbog7lxZZu1eZzX2MpvgKOqa+hXiZtljq0XrFmnIaqODB/q42y6wRZ FpVsDVUi1WCDYua7wV1ma2FAL1KCIaMHQ51A6ZYBa9Gr2qytv4kRl1ml1yzhOtWoPUUD eQrrGKCHRCVi8st3ifPTi77X1ayOgKwB862Ur8aeKBM68T0bA0hUemx6KoT0Hbz/GZwA GE5ciKT9UC6kWtQKckPiMF6ETLLFHyhrSzunV9YkegzRcBYGOHO9g3wsVwP4+2geiCRO 1T5A== X-Gm-Message-State: AGi0PuYM7BEXMecx4fb95hRb6wNuMCNQQD3nQC8X221xeH60AFabpbCF 5usYbuO2pBFaRmgBo0cRXyC+TQe4 X-Google-Smtp-Source: APiQypKIKm3MVrglETOb8ECDhT6vt7fz8WMoyGrd/cLKfe3TeunTUVnDVyDYbOxP1DmimrBSs9UN3A== X-Received: by 2002:adf:f58e:: with SMTP id f14mr28659251wro.79.1587567552048; Wed, 22 Apr 2020 07:59:12 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:f038:efd9:aa5f:7833]) by smtp.gmail.com with ESMTPSA id y9sm7849539wmm.26.2020.04.22.07.59.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Apr 2020 07:59:11 -0700 (PDT) From: Robert Pluim To: Adam =?utf-8?Q?Sj=C3=B8gren?= Cc: ding@gnus.org, emacs-devel@gnu.org Subject: Re: Rendering regression in Gnus with gnus-treat-from-gravatar References: <877dym5fes.fsf@tullinup.koldfront.dk> <87d08ejbmj.fsf@tullinup.koldfront.dk> <87r1wfsild.fsf@gnu.org> Date: Wed, 22 Apr 2020 16:59:09 +0200 In-Reply-To: <87r1wfsild.fsf@gnu.org> (Tassilo Horn's message of "Wed, 22 Apr 2020 16:25:34 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk >>>>> On Wed, 22 Apr 2020 16:25:34 +0200, Tassilo Horn said: Tassilo> I have the same problem as Adam. And it happened two or three= times Tassilo> that upon clicking a message, Emacs started consuming 100% CPU= and stuck Tassilo> at least 30 seconds before I hit C-g. At one occurrence, I at= tached GDB Tassilo> after waiting at least 30 seconds for the full message to appe= ar and on Tassilo> the bottom of the call stack was Tassilo> dns-query Tassilo> accept-process-output Tassilo> Hm, that must be that while loop in dns-query but given the va= lues of Tassilo> step and times, I cannot see how that could block for so long.= And Tassilo> usually, it doesn't. I=CA=BCve seen it take 5 seconds with slow DNS just to do the DNS lookup. There might be multiple issues here. Tassilo> And in the ususal case, it is just slow in the sense of maybe = 2-5 Tassilo> seconds. And in those normal cases, it's not so much the dns = query but Tassilo> the TLS negotiation with seccdn.libravatar.org (in case the DN= S lookup Tassilo> found no custom gravatar url). Tassilo> Here's a profiler report gathered with: Tassilo> (progn Tassilo> (profiler-start 'cpu) Tassilo> (gravatar-retrieve-synchronously "tsdh@gnu.org") Tassilo> (profiler-report) Tassilo> (profiler-stop)) gravatar does those retrieves asynchronously, but that won't change the call graph, I don=CA=BCt think. Would it make sense to 1. Use dns-query-cached 2. Switch gravatar to use http rather than https by default, with a user option to use https (I=CA=BCm assuming this speeds things up) 3. Apply the gravater caching patch from Philip K I suspect [2] there would give the biggest improvement, given your profile report. Robert