From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Vladimir Sedach Newsgroups: gmane.emacs.help Subject: Re: Make emacs-eww render asynchronously Date: Tue, 19 Mar 2019 11:10:32 -0700 Message-ID: <9001.50727700151$1553019555@news.gmane.org> References: <871s33eags.fsf@work.i-did-not-set--mail-host-address--so-tickle-me> 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="105695"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.1.0; emacs 26.1 Cc: help-gnu-emacs@gnu.org To: YUE Daian Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 19 19:19:08 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 1h6JKM-000RKE-7J for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Mar 2019 19:19:06 +0100 Original-Received: from localhost ([127.0.0.1]:33049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6JKL-00063H-6z for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Mar 2019 14:19:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6JJt-0005u7-32 for help-gnu-emacs@gnu.org; Tue, 19 Mar 2019 14:18:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6JCS-0003VH-SC for help-gnu-emacs@gnu.org; Tue, 19 Mar 2019 14:10:57 -0400 Original-Received: from forward106j.mail.yandex.net ([2a02:6b8:0:801:2::109]:36263) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h6JCS-0003Qf-As for help-gnu-emacs@gnu.org; Tue, 19 Mar 2019 14:10:56 -0400 Original-Received: from mxback1o.mail.yandex.net (mxback1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1b]) by forward106j.mail.yandex.net (Yandex) with ESMTP id 50E2B11A03B2; Tue, 19 Mar 2019 21:10:51 +0300 (MSK) Original-Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback1o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id rAfgmx50PK-ApNq8HWe; Tue, 19 Mar 2019 21:10:51 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oneofus.la; s=mail; t=1553019051; bh=SoIsNhvSW4vdh1OjPwL01LeL52BgRQS6fV8cLsBOn3s=; h=In-reply-to:Subject:Cc:To:From:Date:References:Message-ID; b=zQl7VHcnS/WDny1Dy70+JROUiLXuUaGer4eXn0xOBc7ue5MHl8GMHpY5qmexbugJ+ 5MsSWNtot/FY6lB6Nk0JuoDMHnrMKnDDx6IyEgLnz4vjhI9u1TzdTKdlFll/2zXGHg OKPgxtC6owpQdUJSxdBTZjna4y/zz9h4Q7xGSSEw= Authentication-Results: mxback1o.mail.yandex.net; dkim=pass header.i=@oneofus.la Original-Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id pLEt0T2Ui1-AnlqV2wj; Tue, 19 Mar 2019 21:10:49 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) In-reply-to: <871s33eags.fsf@work.i-did-not-set--mail-host-address--so-tickle-me> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a02:6b8:0:801:2::109 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:119680 Archived-At: > 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