From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#56255: 28.1.50; sxhash-equal does not change when object is modified Date: Wed, 29 Jun 2022 12:15:30 +0200 Message-ID: <87fsjnlqrh.fsf@gnus.org> References: <87v8sm70ma.fsf@localhost> <87y1xhu34f.fsf@gnus.org> <87r139u2y6.fsf@gnus.org> <874k05q70i.fsf@gnus.org> <87sfnokz6p.fsf@localhost> <87o7yblreq.fsf@gnus.org> <87r137kcbt.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30380"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56255@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 29 12:16:22 2022 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 1o6UkA-0007cx-56 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 12:16:22 +0200 Original-Received: from localhost ([::1]:52136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6Uk8-0000Y5-PH for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 06:16:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6Ujq-0000Ud-A2 for bug-gnu-emacs@gnu.org; Wed, 29 Jun 2022 06:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35427) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6Ujq-0002v5-1k for bug-gnu-emacs@gnu.org; Wed, 29 Jun 2022 06:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6Ujp-0007NM-UG for bug-gnu-emacs@gnu.org; Wed, 29 Jun 2022 06:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jun 2022 10:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56255 X-GNU-PR-Package: emacs Original-Received: via spool by 56255-submit@debbugs.gnu.org id=B56255.165649774128309 (code B ref 56255); Wed, 29 Jun 2022 10:16:01 +0000 Original-Received: (at 56255) by debbugs.gnu.org; 29 Jun 2022 10:15:41 +0000 Original-Received: from localhost ([127.0.0.1]:57552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6UjV-0007MW-2K for submit@debbugs.gnu.org; Wed, 29 Jun 2022 06:15:41 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:58048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6UjT-0007MC-Bs for 56255@debbugs.gnu.org; Wed, 29 Jun 2022 06:15:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4gJAIQvL0VeMvsHoE6ttk7QQfltmvJZVS6scqaaZeok=; b=KgMEDQoPnsM6EVDaPCR9hELlpa lAewAFf99m7xNazH8lBKPdbz4QwyC0brpjrb54i98hN6ah93AlFvzhm3bVGtfy43l8XmKrjozyJfg 3RyKERCpcAFumZ0GXVZ2kvedEb6tPv8Of9X3dyxTAshn0twcv1IXnyPrraHhLTARg2l4=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6UjK-0006Ay-Px; Wed, 29 Jun 2022 12:15:33 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEUXExQhGxwuKi1Z LzkpJ2QjGygrK4lkU4jVnXTOLiCuSDmiJRzbTDLoa07////QtD2nAAAAAWJLR0QOb70wTwAAAAd0 SU1FB+YGHQk1EwikkDoAAAF7SURBVDjLnZQxTwIxFMdfD1i4pWdgcIMT4ooysUG8wCpGPoGE+AEw YXRwcHBzau5ucHJwYjDmxMXBoaG3QwLfxV69wqW0Ufwnl7T9vff+fbm2gAAwcrLCgDDCYGGoglXB R4AqcMpHAAlogJSDHP4hHrojlIQ6zi7AODFDoEnhxRxNKYP+HrmveOd6UP11EwduzatduK6rhpZG XGPP8zoacH2XBdYWXGVABdAG9NqFodftKHsojYaTRr437Go8JreXvfFIBXnu0W4d3zT7slQuBV7z uWG/nZGp7Dw1L7LFg28/tsIvxdxmMfUPic+eFI8iDanfiqLwUwE2iVeEkCDYZKSd236wYmtGJcDS nAO+vs6AVDkSxWsaU6YBi/t5uGRTdbtkFi/mH0vZ4NZ8NQuoH5Ft57LUy0zo/VVM0QaUkytTHtQH AzHVnPkfGc82Mh04fAIFfUbf5GEy/8d1qZtA1bC+v4VMsZKi/Lmp8xF/a4SHaAWlf1/EnYuMb6sp Z/wCmHAZAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA2LTI5VDA5OjUzOjE5KzAwOjAw8pBinAAA ACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNi0yOVQwOTo1MzoxOSswMDowMIPN2iAAAAAASUVORK5C YII= X-Now-Playing: Django Django's _Glowing In The Dark_: "Hold Fast" In-Reply-To: <87r137kcbt.fsf@localhost> (Ihor Radchenko's message of "Wed, 29 Jun 2022 18:12:38 +0800") 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:235610 Archived-At: Ihor Radchenko writes: > This is exactly the problem at hand. I was hoping to find a fast way to > detect if a large deeply nested object is changed. If not, do not print > that object for the purpose of saving it to disk cache. Printing can > take up to 2-3 seconds in some cases. I think you basically have to restructure the code to add a guard to whatever's updating the structure to see whether it's "dirty" or not. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no