From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: YUE Daian Newsgroups: gmane.emacs.help Subject: Re: Make emacs-eww render asynchronously Date: Wed, 20 Mar 2019 12:31:19 +0800 Message-ID: <87tvfycgko.fsf@work.i-did-not-set--mail-host-address--so-tickle-me> References: <871s33eags.fsf@work.i-did-not-set--mail-host-address--so-tickle-me> <5c9132a1.1c69fb81.b855.49c7SMTPIN_ADDED_BROKEN@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="8366"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 20 05:46:21 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6T7M-00023D-Ho for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Mar 2019 05:46:20 +0100 Original-Received: from localhost ([127.0.0.1]:42796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6T7L-0007S5-Eh for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Mar 2019 00:46:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6T6y-0007Lg-AL for help-gnu-emacs@gnu.org; Wed, 20 Mar 2019 00:45:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6StS-0004J9-Ih for help-gnu-emacs@gnu.org; Wed, 20 Mar 2019 00:31:59 -0400 Original-Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]:44160) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h6StS-0004GK-4o for help-gnu-emacs@gnu.org; Wed, 20 Mar 2019 00:31:58 -0400 Original-Received: by mail-pf1-x441.google.com with SMTP id a3so936221pff.11 for ; Tue, 19 Mar 2019 21:31:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=HZNfgLAnk932Atg2xgZWMX8IPygHHeUpJrTaY/CORkQ=; b=Elacw9zGnSd5XFSKkHtv+kTwE7dp3xjBvwrZYb17+INkzuaKp5X70QbNP/7HfCOR7K fvXDXGP4oxZV1ELBvrUV5PfmeOsVyPnDqu6o4zyuoaE/qrUiIXH/x0eXeLhYhjsbio4j 6nOG51GjrZMI8VheIgyevZ6Pjh4cHg0HJb9Qg7tWv8JEryFlE1WZcTSGpReUy3V88+4D 57Iy4owbTUQmT/dGZ6GzmvMR8ENTEKy7bq/BugVtd+jcyIC89Rtr941YwQVRbu+Oyg/m UW+VyD2kTLVOyznOn6nx4WSxI6nVkmgiNySpPT5czi0V48HaE7BtnpxI5G0fulro3k5Y YIGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=HZNfgLAnk932Atg2xgZWMX8IPygHHeUpJrTaY/CORkQ=; b=ubnLMFSnOgq0RREMeK74NpjQCLj36H+QmIE/Imrt53gHUtMgnn3+WHALDpClW2vf9u olMeW55b2p2g6iLyIZa/jOT8sHeKLd9nBWjnswS3AZCXXmoTb05x0I5UbBAZa7RgWs9Z 1Jwg7/p0C7x+w+V3haDo6pfYTtBuBe4ymdxd/YDtVJQAWwdw4ocTkVwHiLATAdTWU4b8 3R+Mwd44uUL1yVal9oktoa3id4ZSHagD8riJVhAKA+0RjyCIUMQ3HGAnEkbD8ZxqxyNC sa+0RvqfjtRUBoy7i/3F5fvfs0GEHY4E5Y2BvlseQoAN4AIYhgupPmB9MpYAtJfAY0pM lvVA== X-Gm-Message-State: APjAAAXjvL6cM1h6+Je51jmKiqlwyby8yJit6GVezCWh21KA/GT1jR2A e7FIqwTuuYDzn2OQCpIyBnNYMG2xoz0= X-Google-Smtp-Source: APXvYqzVdQDLNBod0q4BzmoK99Q+mSmrgq99J7a5cQ7QZbN73eP7iPn7M2fr3HVj/ui+M79WeWMRsg== X-Received: by 2002:a65:60da:: with SMTP id r26mr5389562pgv.294.1553056316168; Tue, 19 Mar 2019 21:31:56 -0700 (PDT) Original-Received: from localhost ([118.201.58.126]) by smtp.gmail.com with ESMTPSA id v18sm735682pfm.165.2019.03.19.21.31.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Mar 2019 21:31:55 -0700 (PDT) In-Reply-To: <5c9132a1.1c69fb81.b855.49c7SMTPIN_ADDED_BROKEN@mx.google.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::441 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119692 Archived-At: On 2019-03-19 11:10, Vladimir Sedach wrote: >> The emacs-w3m fetches the page asynchronously, but the rendering process >> will freeze Emacs for a long time. > > Yes, this is an actual problem. =C3=93scar Fuentes probably does not > notice it because he must have a fast computer - if you are hacking > elisp code it is a good idea to do it on old slow hardware. I find > that profiler.el is not very useful for discovering things that cause > lag and latency. In case anyone is reading this and thinking "get off > your heirloom VAX grandpa, here is a nickel, buy a better computer," > there is no reason for computers with gigahertz-plus CPUs and a > gigabyte of memory to end up in the landfill, even if they are 10+ > years old. And work on performance issues caused by sloppy code and > bad algorithms/data structures will benefit all GNU Emacs users. > >> Is it a way to make emacs-w3m render pages asynchronously? > > The cause of the problem will not be fixed by asynchronous rendering. > emacs-w3m code has some real problems and is doing a lot of > unnecessary work. > > If you would like to contribute to emacs-w3m, the details for > subscribing to the emacs-w3m mailing list can be found at: > http://emacs-w3m.namazu.org/ > > The source code repository is now at: > https://github.com/emacs-w3m/emacs-w3m > >> Or should I start to use eww exclusively instead of emacs-w3m? > > You can do both. It is probably easier to add features and w3m-style > rendering to eww than to fix emacs-w3m. > > Vladimir Maybe you are right. IMHO emacs-w3m is not easy to hack. Then the question would become "how to make eww fetch pages asynchronously." ;-)