From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: Rendering regression in Gnus with gnus-treat-from-gravatar Date: Wed, 15 Apr 2020 17:12:00 +0300 Message-ID: <837dyghm8f.fsf@gnu.org> References: <877dym5fes.fsf@tullinup.koldfront.dk> <87d08ejbmj.fsf@tullinup.koldfront.dk> <87r1wq55xk.fsf@tullinup.koldfront.dk> <83h7xlgk6k.fsf@gnu.org> <83d089ges8.fsf@gnu.org> <83blntgdoy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="20150"; mail-complaints-to="usenet@ciao.gmane.io" Cc: asjo@koldfront.dk, ding@gnus.org, emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 15 16:14:06 2020 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 1jOinm-00058h-Fr for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Apr 2020 16:14:06 +0200 Original-Received: from localhost ([::1]:50694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOinl-0007W0-HQ for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Apr 2020 10:14:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43632) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOim3-000605-Ge for emacs-devel@gnu.org; Wed, 15 Apr 2020 10:12:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jOim2-0005LY-JR; Wed, 15 Apr 2020 10:12:18 -0400 Original-Received: from [176.228.60.248] (port=3864 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jOim1-0008Cm-2F; Wed, 15 Apr 2020 10:12:17 -0400 In-Reply-To: (message from Robert Pluim on Wed, 15 Apr 2020 15:54:09 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:247006 gmane.emacs.gnus.general:89098 Archived-At: > From: Robert Pluim > Cc: asjo@koldfront.dk, ding@gnus.org, emacs-devel@gnu.org > Date: Wed, 15 Apr 2020 15:54:09 +0200 > > >> Or itʼs the interaction with redisplay thatʼs slow > > Eli> What interaction is that? > > The url request fetches some image data, and inserts that in the Gnus > article buffer. It won't get shown until redisplay runs, which means > the main thread has to run. Assuming that the non-main thread exits once it's done fetching, that's not different from a single-threaded fetching, is it? IOW, redisplay won't kick in until the code which fetches the images finishes. > Itʼs not yet clear to me from which thread that insertion eventually > gets done The one that fetches the stuff, I suppose. If not, how will the fetched stuff get passed to the main thread for insertion?