From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: emacs rendering comparisson between emacs23 and emacs26.3 Date: Mon, 6 Apr 2020 20:16:43 +0300 Message-ID: References: <20200403174757.GA8266@ACM> <20200404104553.GA5329@ACM> <07fe3b69-3ab2-3173-0696-cb17809e2b91@gmx.at> <83blo7v68b.fsf@gnu.org> <1845d7aa-9ae4-3d95-6a30-c7b1d8d8adec@gmx.at> <83a73qt6zs.fsf@gnu.org> <97c4254e-ff43-8402-3645-f713c408c245@gmx.at> <83y2r9syby.fsf@gnu.org> <20200405195753.GG5049@ACM> <542b48ba-4dfa-820f-ba50-4b147ab6d8e2@yandex.ru> <0a5f70aa-4985-8f8d-81d6-6ac4a60a94f9@yandex.ru> <838sj8sphk.fsf@gnu.org> <834ktwsmfw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="129849"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 Cc: acm@muc.de, rrandresf@gmail.com, emacs-devel@gnu.org, rms@gnu.org, rudalics@gmx.at To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 06 19:18:08 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jLVNw-000Xgm-0y for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Apr 2020 19:18:08 +0200 Original-Received: from localhost ([::1]:35494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLVNv-0004gk-1X for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Apr 2020 13:18:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58009) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLVMf-0002kk-3i for emacs-devel@gnu.org; Mon, 06 Apr 2020 13:16:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLVMe-0000Pe-4s for emacs-devel@gnu.org; Mon, 06 Apr 2020 13:16:49 -0400 Original-Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:38840) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jLVMd-0000Mz-U9; Mon, 06 Apr 2020 13:16:48 -0400 Original-Received: by mail-wr1-x434.google.com with SMTP id 31so385409wre.5; Mon, 06 Apr 2020 10:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=4pB5H5qjfp8/am3yBoDgehSG+pj8IN9X5sJjAwrwZ0Q=; b=luDs63aDVV/422f/8h/zLj/Xyy6z2746o4M/tTVcT3+Ya1uFlfny5t0NBS6qMm8S6I bn+Jiw9sCUfG9+4N8TTaF8+/ZONvZVrpC0omprhoVXJEnz2/3TJTZ7NJvk/UKPh5sVJu WGasBaHjr4zrAOUhFDY2b5wLNbiPlMvzQ8chdutj1Jef3dnC8xcEpaUhKrQqLYR5IdP9 7q5+EQjBxC17EdZQueUQnsTq6Lx5I9A6mJSEc4AEAedGNR4UIVALK0KDsr2gM1t8TZGL 0Jpv50MQdn3z322CJXychjGrq05HEQXhH9l59Qd2VGBPkSWv3+4wv8e2A3d6RxX43RGp Enxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4pB5H5qjfp8/am3yBoDgehSG+pj8IN9X5sJjAwrwZ0Q=; b=mrpJw7s/XoCT793lWPjEVT1Ul8b41Hyb0vj86qRuOTq7gVZIw2IfdAP9vuxCjm7a9J vjDgRCab4ZThS4ATLUb4NtS38yCIh4GL4mdPTCHIa/H+XEFV91OyvvM+W5yHiZZC1vLM f6xHd/Uzw4ML25YKUecj3pGRnJ7B+fRJm2eqs5I28vlPoCpwLIFja+Ui0nDlMNiGkS2S xOiqqWuvdhKufUQiXvjc0a/d4lcJ27ENncBZDOhIftmIcTPuHubj7s3+m0Pz92vi8Jeo 1bN9/gXpeHnBDBZLnvLWtIxbv/QLrnMYfi0+GyXdt3QE3BBjdtoyex6D/JSVjCTTp7xu ZcHA== X-Gm-Message-State: AGi0Pua72Eqtq0/RmrhBaAI1Mrn4scFAc5/+cuXZvjI3qnay2AgEM+Z2 2Z5qBOB+H1nBw+jGSIdDEcYVkwtK1wc= X-Google-Smtp-Source: APiQypLC2zEULP/rQVu3i3g6XuF8cSlRUD6+RVZFa4SGegXFE5hLgsD5Zn9DUxn5sDTe1be7QWPBSQ== X-Received: by 2002:a5d:4146:: with SMTP id c6mr201378wrq.181.1586193406531; Mon, 06 Apr 2020 10:16:46 -0700 (PDT) Original-Received: from [192.168.0.2] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id y1sm335397wmd.14.2020.04.06.10.16.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Apr 2020 10:16:45 -0700 (PDT) In-Reply-To: <834ktwsmfw.fsf@gnu.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::434 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:246542 Archived-At: On 06.04.2020 17:44, Eli Zaretskii wrote: >> I thought binding fontification-functions to nil was done there exactly >> with that intent: to affect what the display engine subsequently does. > > Can't be done, because redisplay runs only _after_ the scroll command > returns, at which point this binding is undone. You can easily see > this in a debugger: put a breakpoint inside redisplay_internal right > after the specbind line is executed, then type > > (gdb) p Fsymbol_value (Qfontification_functions) > > You will see the value is a cons cell, not nil. > > What that binding does is affect the portions of display code that are > run as part of window_scroll_pixel_based, which the scroll command > calls to calculate a suitable position of window-start by simulating > display. That display code runs with fontifications disabled, which > makes it faster. > > All the scroll commands in Emacs do is more or less calculate the > window-start point; the rest is done when redisplay kicks in. So what happens then? Does it trigger jit-lock anyway? If so, I don't understand how we get the apparent performance improvement from using fast-but-imprecise-scrolling.