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.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 798 invoked from network); 25 Apr 2020 17:13:58 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with UTF8ESMTPZ; 25 Apr 2020 17:13:58 -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 1jSON9-0007ty-0r; Sat, 25 Apr 2020 12:13:47 -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 1jOgkF-0000OF-8A for ding@lists.math.uh.edu; Wed, 15 Apr 2020 07:02:19 -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 1jOgkD-00063C-T8 for ding@lists.math.uh.edu; Wed, 15 Apr 2020 07:02:19 -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:References :Subject:In-Reply-To:Cc:To:From:Message-Id:Date: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=sRhUcxq/uNSBnIYFON03IsO5g5id5cMGH/KhbU1PeyQ=; b=Xid90syFYt8mOfnUuaW+wjxQ6h NOSPQlRfwlmT7fu4llNkci35JSmVxf4xtSDH3uFSLijb8wQxPvE82RL2/H1VgFlLKGc+O0ZJobVfI Xr9os7nRvV/nTjVEiYV8Q+F3Txp3Y6RQv1SXgVT3yRodcnXBevoezmlMK9+LKQ7zYoZg=; Received: from eggs.gnu.org ([2001:470:142:3::10]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jOgk7-00065O-0p for ding@gnus.org; Wed, 15 Apr 2020 14:02:13 +0200 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jOgk3-00015v-D8; Wed, 15 Apr 2020 08:02:07 -0400 Received: from [176.228.60.248] (port=3684 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jOgk2-0004Yv-Ha; Wed, 15 Apr 2020 08:02:07 -0400 Date: Wed, 15 Apr 2020 15:01:49 +0300 Message-Id: <83blntgdoy.fsf@gnu.org> From: Eli Zaretskii To: Robert Pluim Cc: asjo@koldfront.dk, ding@gnus.org, emacs-devel@gnu.org In-Reply-To: (message from Robert Pluim on Wed, 15 Apr 2020 13:55:59 +0200) Subject: Re: Rendering regression in Gnus with gnus-treat-from-gravatar References: <877dym5fes.fsf@tullinup.koldfront.dk> <87d08ejbmj.fsf@tullinup.koldfront.dk> <87r1wq55xk.fsf@tullinup.koldfront.dk> <83h7xlgk6k.fsf@gnu.org> <83d089ges8.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] List-ID: Precedence: bulk > From: Robert Pluim > Cc: asjo@koldfront.dk, ding@gnus.org, emacs-devel@gnu.org > Date: Wed, 15 Apr 2020 13:55:59 +0200 > > Eli> The thread will not run until the main thread yields in some way. > Eli> What does the main thread do after calling make-thread? > > (with-mutex gravatar-mutex > (setq gravatar-retrieve-params > (list mail-address callback cbargs)) > (condition-notify gravatar-cond-var)) > (thread-yield) > > where the gravatar thread is doing 'condition-wait' on that same > condition var. Except that it then fires off an asynchronous url > request, so perhaps thatʼs the slow bit. You could put a breakpoint before and after the URL request, and then see which part takes time. > Or itʼs the interaction with redisplay thatʼs slow What interaction is that?