From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Redisplay slower in Emacs 28 than Emacs 27 Date: Tue, 08 Dec 2020 16:33:45 -0500 Message-ID: References: <87pn3lhcdd.fsf@gnus.org> <878sa9hbe2.fsf@gnus.org> <877dptfvae.fsf@gnus.org> <83czzl8qwu.fsf@gnu.org> <87sg8h78s8.fsf@gnus.org> <837dpt8lk5.fsf@gnu.org> <87pn3kjssr.fsf@gnus.org> <83im9c70vu.fsf@gnu.org> <87im9cfeej.fsf@gnus.org> <837dps6xyv.fsf@gnu.org> <87czzkdx57.fsf@gnus.org> <83v9dc5he3.fsf@gnu.org> <87r1o0chk9.fsf@gnus.org> <83tusw5g5o.fsf@gnu.org> <87360gaz7o.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17182"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: ghe@sdf.org, Eli Zaretskii , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 08 22:58:57 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 1kml0a-0004N7-77 for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Dec 2020 22:58:56 +0100 Original-Received: from localhost ([::1]:41208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kml0Z-0003Ks-7W for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Dec 2020 16:58:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmkcK-00013I-UG for emacs-devel@gnu.org; Tue, 08 Dec 2020 16:33:52 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:53107) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmkcH-0001E9-IJ; Tue, 08 Dec 2020 16:33:51 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D56BA441713; Tue, 8 Dec 2020 16:33:47 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 79619441714; Tue, 8 Dec 2020 16:33:46 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1607463226; bh=IVeW5ODxelC1Au3u08+uti8q5syWGjgy9oxC6GSgKxE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Amr44FjHWSMwCPGLHvwbCkvLStW3OXxbEBkpjJvmoRPQaNsRcEhtoZKwSwNtQae7o p3WbNUVO6iwR0imkE/8uUWrEwgp3reIU/5CC5dXE1Qzgo8awrQxOrx2O/0LuCZB1S+ okTB5E0/8Ha6YVxKIUeKd34Wb6sTOBxO2iog2IbHj25hiMMjZJtCKGtY+eIAXUJVVc RfiDA+yXi+VZrN7Ek5clnZMW/7kjgwsm6HcUpcl+pNJPLWTSeYtHaSUK2Ite4Qtj0F Bh/aXQJZw/5XYKFTnDO82faBTlAtw9g5DCGod6ABiSAvRPSI8lWBjgX/QUowZfyBMF WCJjvs0zSEYXw== Original-Received: from alfajor (69-165-136-52.dsl.teksavvy.com [69.165.136.52]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 2BFDE120207; Tue, 8 Dec 2020 16:33:46 -0500 (EST) In-Reply-To: <87360gaz7o.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 08 Dec 2020 20:12:59 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:260586 Archived-At: Lars Ingebrigtsen [2020-12-08 20:12:59] wrote: > :data image, current sxhash, Fequal: 6.4s. > :data image, NOOP sxhash, Fequal: 3.4s. Maybe it's time we speed up `hash_string`. There's a lot of room for improvement there, AFAICT, e.g.: - work on `EMACS_UINT` chunks instead of `char` chunks. - Bound the amount of work (e.g. do a max of, say, 10 chunks, equally spaced throughout the string). Stefan