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: Scrolling commands and skipping redisplay, was: Re: emacs rendering comparisson between emacs23 and emacs26.3 Date: Fri, 24 Apr 2020 04:23:57 +0300 Message-ID: References: <20200403174757.GA8266@ACM> <542b48ba-4dfa-820f-ba50-4b147ab6d8e2@yandex.ru> <0a5f70aa-4985-8f8d-81d6-6ac4a60a94f9@yandex.ru> <838sj8sphk.fsf@gnu.org> <834ktwsmfw.fsf@gnu.org> <83imibqsmm.fsf@gnu.org> <478c2aab-a5fc-61c2-02e2-2d9846b95273@yandex.ru> <83v9m9nltx.fsf@gnu.org> <83tv1rn8fx.fsf@gnu.org> <4f8bb277-b376-97bf-8539-799688d8e66d@yandex.ru> <83eesvmj15.fsf@gnu.org> <6eec7f68-770e-b3b1-4627-6222f3ef7216@yandex.ru> <83ftd9kwlu.fsf@gnu.org> <1de9d24f-eeb7-7d0a-3768-4baba4365066@yandex.ru> <83zhbcdmyi.fsf@gnu.org> <61f565cd-4fee-d48c-a9ef-b78419b3d058@yandex.ru> <83wo6ed4kb.fsf@gnu.org> <464b5639-7790-fdbc-b519-22a6b0e8c016@yandex.ru> <83o8rqaucp.fsf@gnu.org> <83lfmqgpb9.fsf@gnu.org> <83mu75ey3k.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="123138"; 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 Fri Apr 24 03:24:59 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 1jRn5N-000Vu0-Ob for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Apr 2020 03:24:57 +0200 Original-Received: from localhost ([::1]:46564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRn5M-0007f0-Lp for ged-emacs-devel@m.gmane-mx.org; Thu, 23 Apr 2020 21:24:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58360) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRn4g-00074Z-Nt for emacs-devel@gnu.org; Thu, 23 Apr 2020 21:24:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRn4e-0002qj-8S for emacs-devel@gnu.org; Thu, 23 Apr 2020 21:24:13 -0400 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:52543) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRn4b-00029D-W2; Thu, 23 Apr 2020 21:24:10 -0400 Original-Received: by mail-wm1-x32b.google.com with SMTP id 188so8675905wmc.2; Thu, 23 Apr 2020 18:24:02 -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=6BqY3pLQsKUl0F9WKXSdb7t8SluuCmUY3Bc8HDdp22w=; b=qnik++HVkX6FiPqIOtTsVffhuzMLfjxacf08c7slS/Z9hXCxMIYwOfWy8aKkV0oWmo UgETMocHNBU1fGF+N1u+GaX9HU2sJujwFGP/aHmwtg8+nomjybccPLHwF9uCw7LQaSZM 5VrMJtr9MS9qd3AY8yqzRMglEiU67c5dbGSFv6f+1HlWTbHF77YB1i2x/L3KGPbJxhAH NlHHFlZwg004yfqsAX5Njg2Q7ZaqU4g/JISrRRWlEVPL4R/oJuFk/iGMuW4PXr7h2lI0 gylCfiNuOPGGMS6MYTLq1Q65BEI2vq4tyXRS9PrKBkdOmfYn7agVFayNhLQcz2/7sZRz uVSQ== 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=6BqY3pLQsKUl0F9WKXSdb7t8SluuCmUY3Bc8HDdp22w=; b=RpFnB4/GCLaiEJ3gsp/+2XoFPwrTd96F3kqcFpYlgLkbKZXtIWS834oGw1NjBDMfan aO0xp1+Brt1svHXOt+kt923XDeNFc09mPs17IvEx6/qUOMdIErEz+Pb0F0jmSWsefhKE iI1P0fgzcLRO4sjQMTZ8V54m7gNT/0SVXpJ++KohF35GLnhTRZRHcT7MP56+nHbuSECf JI533g9WZdjNlsLF59pWUjwqRyT9A9bYwOzSG51qr9+qY6OwXHnhFiioZ3iC3xVA5kYo qkHNDGmRgMJrOGsh6FpLXrvfm5vIG9oClfwo+PPqLHJ0WXWq5nPu1WNi6ZAo/wi0VGdR h8Hw== X-Gm-Message-State: AGi0PuZqtj98GOWFBCXd5EGlZk9nWAKgRzNFOUb6PNkeQbVhsYhYqcGd 5buTjntntD8pxRXzGNFFT3n2s0IHf2c= X-Google-Smtp-Source: APiQypK4yaT+etWJ9oDzKCju/u9K+4vuYC2vJinOQRcW8ZE5Jxpkqe2vVRB/NuIt1uc9F8ycgyXJGQ== X-Received: by 2002:a1c:bd8b:: with SMTP id n133mr7572975wmf.175.1587691440815; Thu, 23 Apr 2020 18:24:00 -0700 (PDT) Original-Received: from [192.168.0.2] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id h6sm728511wmf.31.2020.04.23.18.23.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Apr 2020 18:23:59 -0700 (PDT) In-Reply-To: <83mu75ey3k.fsf@gnu.org> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=raaahh@gmail.com; helo=mail-wm1-x32b.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:1450:4864:20::32b 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:247648 Archived-At: On 21.04.2020 17:02, Eli Zaretskii wrote: >> A certain amount of work that's also part of redisplay. > > I suggest to use a common terminology, otherwise we will just confuse > each other. Let's agree to call "redisplay" only what happens when > Emacs calls one of the two functions: redisplay_internal and > echo_area_display. OK? Redisplay calls many functions, including > fontification-functions, but those functions themselves are not to be > called "redisplay", because they don't display anything. Do scrolling commands and/or code that calls posn-at-point do anything else common with redisplay other than fontification functions? For instance, converting the buffer text into some other structure that rendering the window will be based on. I think you called it a "glyphs table" or something like that. If *that* work (together with fontification) is usually what takes the most time during redisplay, there could be some simple cache added on to of it, which would make skipping redisplay unnecessary in cases when the command would pre-fill such cache. Otherwise, this idea is a dud.