From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54657: 29.0.50; 100% CPU usage with eww on https://blogsurf.io/ Date: Fri, 01 Apr 2022 09:05:02 +0300 Message-ID: <83tubd5ofl.fsf@gnu.org> References: <87fsmx9a23.fsf@onenetbeyond.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37144"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54657@debbugs.gnu.org To: dal-blazej@onenetbeyond.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 01 08:05:12 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1naAPI-0009Sv-L2 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Apr 2022 08:05:12 +0200 Original-Received: from localhost ([::1]:45198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naAPH-0001tp-L5 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Apr 2022 02:05:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naAP9-0001sr-28 for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 02:05:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naAP8-0004Jw-P2 for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 02:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1naAP8-0003JC-Bh for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 02:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Apr 2022 06:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54657 X-GNU-PR-Package: emacs Original-Received: via spool by 54657-submit@debbugs.gnu.org id=B54657.164879310012707 (code B ref 54657); Fri, 01 Apr 2022 06:05:02 +0000 Original-Received: (at 54657) by debbugs.gnu.org; 1 Apr 2022 06:05:00 +0000 Original-Received: from localhost ([127.0.0.1]:40618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naAP6-0003Ir-4C for submit@debbugs.gnu.org; Fri, 01 Apr 2022 02:05:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naAP3-0003Ie-VB for 54657@debbugs.gnu.org; Fri, 01 Apr 2022 02:04:58 -0400 Original-Received: from [2001:470:142:3::e] (port=47612 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naAOy-0004JM-Cl; Fri, 01 Apr 2022 02:04:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QKfHoA6BNLGh0oEB/2wsCW+SrHYoJDHYIH9eSO2RGLc=; b=hwCzjONIo7vd dNw4/c9y2BBfo4+MItZP/s7ZUGv/n84G1qT3Fvmp2j279Yn0XA2OL4Xs3Hp2rxDJaH6ni2ZH5kZZ+ 4coQMlZv5uD2GwdCsaBzMO5wtzNZ9XZckhnXUnN6bosFwkpZ6DsoU3uMZLfCJPCY+4X/a7JiuFXJI jD65RTRnDSaxtp8efEBKNF8cvnkAmXd0H6xzd3V3sNRWiU+L8NJjd+tzskb3rD7Vn+p7CPGXuI+Hc 6feV/wjMpAbWN2Vr8qyiH3KH4/ca8Mhybtpa2JE5hxLcKl3P+6uMzqxGZgQGXupNlc5AhrfbIL37o YB3eJnTM0Hwc6WRuYhdHcg==; Original-Received: from [87.69.77.57] (port=3121 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naAOx-0006Qm-Po; Fri, 01 Apr 2022 02:04:52 -0400 In-Reply-To: <87fsmx9a23.fsf@onenetbeyond.org> (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:229202 Archived-At: > Date: Thu, 31 Mar 2022 21:49:40 +0200 > From: dal-blazej--- via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > I was surprised to see that particular site with eww leads to 100% CPU > usage for 2/3 minutes. > > See profiler output below : > > ---------- CPU > 83,835,054 84% - url-http-generic-filter > 83,687,707 84% - url-http-content-length-after-change-function > 82,024,107 82% - url-http-activate-callback > 82,022,955 82% - eww-render > 55,943,666 56% - eww-display-html > 30,476,531 30% - funcall-with-delayed-message > 30,476,531 30% + # Type 'v' to see the page's source, and you will immediately understand why. 99% of that page is a huge JS script that is basically a single humongous line whose length is 12MB. Even Less chokes on this page, just showing its end on the screen. IOW, IMO this is just another instance of the well-known problem in the display engine with very long lines. Maybe EWW could be smarter when displaying pages with JS scripts, but how many pages out there have something similar?