From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ravine Var Newsgroups: gmane.emacs.bugs Subject: bug#45248: 28.0.50; Emacs freezes with big C functions Date: Sat, 19 Dec 2020 09:58:48 +0530 Message-ID: <87pn36o1le.fsf@gmail.com> References: <87a6ufen1w.fsf@gmail.com> <87lfdvmjpw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15094"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.7; emacs 28.0.50 Cc: 45248@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 19 05:36:17 2020 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 1kqTyZ-0003kg-NJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Dec 2020 05:36:15 +0100 Original-Received: from localhost ([::1]:54512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqTyY-00035M-Mh for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Dec 2020 23:36:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqTyP-00035B-OJ for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2020 23:36:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqTyM-00076a-01 for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2020 23:36:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kqTyL-0007YO-Ro for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2020 23:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ravine Var Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Dec 2020 04:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45248 X-GNU-PR-Package: emacs Original-Received: via spool by 45248-submit@debbugs.gnu.org id=B45248.160835253529000 (code B ref 45248); Sat, 19 Dec 2020 04:36:01 +0000 Original-Received: (at 45248) by debbugs.gnu.org; 19 Dec 2020 04:35:35 +0000 Original-Received: from localhost ([127.0.0.1]:40661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqTxv-0007Xf-FP for submit@debbugs.gnu.org; Fri, 18 Dec 2020 23:35:35 -0500 Original-Received: from mail-pj1-f44.google.com ([209.85.216.44]:54051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqTxt-0007XS-Ew for 45248@debbugs.gnu.org; Fri, 18 Dec 2020 23:35:34 -0500 Original-Received: by mail-pj1-f44.google.com with SMTP id iq13so2426885pjb.3 for <45248@debbugs.gnu.org>; Fri, 18 Dec 2020 20:35:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=rUZqBpPglMOwZozQXj7ZBZYnHQRgfuzLx/114iX1tmg=; b=lK/+3Qj5CrZAgQ9d10KQIloaHbifaBXZnv0ycpHQ3tyM7j2LdJ0UKzucJ9MEVMsLn7 BS71F3J6/G2BJ8nui4Y1pSwzJcec7H1ZDaOTeJ+5KFaKpOFEpV7U4sAT0agh3ZTRYCHt 7IvP4ku9fmUOBJybpMK4VK2H8PRTv12B0KLgNNqFqcdr1KkDEju+PK8lDTk30L2Fgd+F fm6siHGjgtYWwAvcl61FVr7kibNTTQL6DV68cnXNb8YTsMIEOjgI065SUUPw9Y300OjQ LAStbiOhKd/Dqi3DtW/hQmjj3xyUFxhrkNOqjqueVXiUA8KLCEF9DA7YL14eVSM7DPwY JOfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=rUZqBpPglMOwZozQXj7ZBZYnHQRgfuzLx/114iX1tmg=; b=oHaHJyt+uQcG/vUrdlwX3oOFeo9I/FyE0LLF3KHWA+XDRINEtlT02hkaQqjnM7KL1y tr/vItxdYlgtOahGjc1+ocHR1l3BkSWHYtw38taxSk/wnuknoNkN0gR0OiUXccpZFMcy EZC1k1OBH/WakQGBCHfuaxZtqVDqDHqyWTPoCzL3hCgolDC00CSh01BMZB4+etvPLlD/ 6ekaj2LKJcH0gSUuhf/XP3rm9gVyvt7gP1qGWpDdIInYw/EwdkQWXyGBYeuIDIEHTEXf 5F/6NBwEDsQ3PhaluJffX6ifplXPcZFoAXn1VVGWZsShs5wMzn8QaivC1TIPmME/o2QQ +n9A== X-Gm-Message-State: AOAM532vN6aNNfDx4f/Js8bLbOPaPolflPFjUv4U0dYvYGjGaxo0loeZ nEVRwT1lZSoBP9MosN72fwcWnarptFs= X-Google-Smtp-Source: ABdhPJw9KsoKjqDD2/pZiBdDNCRHQvs7I1YGgPN/0eboBabTNYNm+i86ShXGsV0b1o+tK+0oDrBYvg== X-Received: by 2002:a17:90a:6d62:: with SMTP id z89mr7641394pjj.71.1608352527194; Fri, 18 Dec 2020 20:35:27 -0800 (PST) Original-Received: from ryzen-mach ([2409:4072:e87:49af:4b4a:d2e8:6eaf:82aa]) by smtp.gmail.com with ESMTPSA id ay21sm8982450pjb.1.2020.12.18.20.35.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Dec 2020 20:35:26 -0800 (PST) In-reply-to: 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:196360 Archived-At: Alan Mackenzie writes: > Let's be clear about the situation: CC Mode does just too much > processing in refontification for current hardware to be able to scroll > smoothly through a buffer at normal auto-repeat speeds. Setting > fast-but-imprecise-scrolling to non-nil is a handy workaround, but it > isn't good enough to make the scrolling appear to be smooth when one > holds down C-v. I think (and hope) this is what you mean by > "stuttering". Yes, that's what I meant. These are my keyboard settings: $ xset q | grep "repeat rate" auto repeat delay: 200 repeat rate: 30 > The bug which I'm hoping to have fixed was that in the large struct in > Wireshark's function proto_register_rrc, the scrolling got slower and > slower as one got further into the struct. On my machine, 80% of the > way through that struct, scrolling a single screen (62 lines) was taking > between four and five seconds, which was unacceptably slow. With the > bug fix, this scrolling takes about 75 milliseconds, regardless of the > position in the struct. This is apart from the first screen drawing in > the neighbourhood, which takes a little time to fill the new cache > entry. > > Could you please confirm that you see the same uniformity in scrolling > speed anywhere inside a large struct, and that the speed is acceptably > close to instantaneous for a single scrolling operation. Or do you see > something different? Thanks! I still see the behavior that you have described. With the patch, scrolling becomes slower and slower rapidly and the screen locks up (using emacs -Q). I tested with a single C file containing just the function proto_register_rrc().