From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrey Orst Newsgroups: gmane.emacs.bugs Subject: bug#46350: 28.0.50; touchpad-scrolling-eats-lots-of-cpu-samples Date: Sun, 7 Feb 2021 20:23:09 +0300 Message-ID: References: <83a6shnklg.fsf@gnu.org> <838s81nhoz.fsf@gnu.org> <8335y9neut.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4073"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46350@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 07 18:24:24 2021 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 1l8nnL-0000wJ-Kp for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Feb 2021 18:24:23 +0100 Original-Received: from localhost ([::1]:38460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8nnK-0007sO-Gc for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Feb 2021 12:24:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8nn0-0007s4-Bm for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 12:24:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37109) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8nn0-0002Ol-3y for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 12:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l8nmz-0006X2-Uo for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 12:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrey Orst Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Feb 2021 17:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46350 X-GNU-PR-Package: emacs Original-Received: via spool by 46350-submit@debbugs.gnu.org id=B46350.161271861125071 (code B ref 46350); Sun, 07 Feb 2021 17:24:01 +0000 Original-Received: (at 46350) by debbugs.gnu.org; 7 Feb 2021 17:23:31 +0000 Original-Received: from localhost ([127.0.0.1]:48655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8nmU-0006WI-97 for submit@debbugs.gnu.org; Sun, 07 Feb 2021 12:23:31 -0500 Original-Received: from mail-pl1-f171.google.com ([209.85.214.171]:40899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8nmR-0006W2-7K for 46350@debbugs.gnu.org; Sun, 07 Feb 2021 12:23:29 -0500 Original-Received: by mail-pl1-f171.google.com with SMTP id y10so6575479plk.7 for <46350@debbugs.gnu.org>; Sun, 07 Feb 2021 09:23:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ib1w5if+RvHMe/qTxJR6ZJZ4zPNqiaWflhhnGceujhA=; b=UkApLDhqwuHoOT76VnV8s+znlLbh3++hlgx3OV2dR7R92cDJEkBjzouDVjW1Qb45dM suTmwJzqyRZVgnrm4So/dkN3uONQPklnDVIl12/7Q7SqKFXEkgUOHxNWVGtJUhPYPPET ti3lMPa+L1MezOW2DXUPknLvsnB2hKeQAdmQncn32stNbuRumin4c2ZJdNkaVuV2ZPGI DBCg0kRO0DozIKVMF19ONX5+/PA83WR0Z318XaApdxLyz2W15pkot0TTF79xJAQQQ5Y1 D40EWv2nJRebHvuV/VTxTSMQg9RCv0KSW88H5YRTn9stTFlmXrzet9lLhifXpBmbsdVZ QBwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ib1w5if+RvHMe/qTxJR6ZJZ4zPNqiaWflhhnGceujhA=; b=C2KaHk2Athr20Qvm+TnxtrPeEP7nl/bEuW9OiVT+v64WATQX4nnCIoYOznOTaqtZz/ QT8zxC2bL8IqOSwwXx7lx4Jc2wnCy+C/+ctJkl/Kv4nNToVsKQGO8tz9amDU+C+m2OS8 0dRHZYnGowN1cDvJsxk/xapwJ2S60E3m4N1vMJLB9PaK/M/U8gNXbIjZaSTYoWNxO/jR rK7R0IgKJK/wPIYVx4sqBsTyABZioimY+HHmPgn+hEDm5AjKrVL5p/WP2mUKsz71E39D 1/wlGHOCLK3bH51Hus8oqOqun2YLfT9Dhen2FeGMceQ1oiT5JYMFJRf/o/0z9p0A4cL2 Ys7Q== X-Gm-Message-State: AOAM533t9Nk54Ix5pwtZ5Bb3qP1e4xgFssOhTEBelcvOyi1QK1F/Gf/D MfnUfHAZJdpjCzwXM3vNcdIHE6PJkHNLqtD4hiw= X-Google-Smtp-Source: ABdhPJz5Y61yCDLRCVGWyAzEQzNPqYq+FjzxsvJ0EJYuVJrJ4hyclLzFRFZ6rHA3pE0RP56XRN7FyiPy4hYVybHcizQ= X-Received: by 2002:a17:90a:db12:: with SMTP id g18mr13448685pjv.72.1612718601272; Sun, 07 Feb 2021 09:23:21 -0800 (PST) In-Reply-To: <8335y9neut.fsf@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:199521 Archived-At: On Sat, Feb 6, 2021 at 11:03 PM Eli Zaretskii wrote: > > > And how many mouse-wheel events Emacs receives in your > > scenario, anyway? > > > > Sorry, how can I check that? > > Add a call to 'message' to mwheel-scroll, and have it show a counter > that counts up? I've did as you've suggested. When scrolling buffer of 1405 lines from bottom to the top (while emacs is unresponsive) mwheel-scroll function seems to be called about ~1351 times. Single fast flick over touchpad produces ~40 calls to mwheel-scroll. Adding (sit-for 0) at the start of the function doesn't have any effect. > What is the size of the buffer that it scrolls almost instantly to > BOB? How many lines? 1405 lines. I'm testing this on bundled lisp-mode.el -- Best regards, Andrey Listopadov