From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#56255: 28.1.50; sxhash-equal does not change when object is modified Date: Wed, 29 Jun 2022 18:12:38 +0800 Message-ID: <87r137kcbt.fsf@localhost> References: <87v8sm70ma.fsf@localhost> <87y1xhu34f.fsf@gnus.org> <87r139u2y6.fsf@gnus.org> <874k05q70i.fsf@gnus.org> <87sfnokz6p.fsf@localhost> <87o7yblreq.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="9021"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56255@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 29 12:12:24 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 1o6UgK-00028c-F1 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 12:12:24 +0200 Original-Received: from localhost ([::1]:49600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6UgJ-0006rn-5h for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 06:12:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6Ug1-0006r1-AF for bug-gnu-emacs@gnu.org; Wed, 29 Jun 2022 06:12:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35372) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6Ufy-0001kG-0e for bug-gnu-emacs@gnu.org; Wed, 29 Jun 2022 06:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6Ufx-0007Eg-Rh for bug-gnu-emacs@gnu.org; Wed, 29 Jun 2022 06:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jun 2022 10:12: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.165649750427788 (code B ref 56255); Wed, 29 Jun 2022 10:12:01 +0000 Original-Received: (at 56255) by debbugs.gnu.org; 29 Jun 2022 10:11:44 +0000 Original-Received: from localhost ([127.0.0.1]:57502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6Ufg-0007E8-70 for submit@debbugs.gnu.org; Wed, 29 Jun 2022 06:11:44 -0400 Original-Received: from mail-pj1-f50.google.com ([209.85.216.50]:40757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6Ufd-0007Du-6G for 56255@debbugs.gnu.org; Wed, 29 Jun 2022 06:11:43 -0400 Original-Received: by mail-pj1-f50.google.com with SMTP id g16-20020a17090a7d1000b001ea9f820449so18864181pjl.5 for <56255@debbugs.gnu.org>; Wed, 29 Jun 2022 03:11:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=j3ihhD0ZHA84D+pn8lGxi1w+Kb2uxjSK80OQDiAKnVk=; b=F1WzDaLhIZOvWeFg43ir6/xjFEwwGuTp3q5EKWSyuJdMX0oEmvGzgQpO2d4qFfH9bi ZWEnnZL2yF3FVgKg16Oj+oh3V/8nyzHOAGfoWQGFHs+FE+WfBJLpnHz8Nv3eB2xXmmDZ XDiq+cn8a4/Mus5z3TnWR+kt2wTVWqx8000ePS6dI2n9K4tCVzjykbJWsu6YJ1cvSzAA Ym7dN6dz/2Opcf0azTczEKGqnX+9AIRR6tRktJqjuxDXg9GydprYJpujQeZSviICVskw q6uP4eLS8uR3Nm9cBv6pXxtVyAPjxmZtUy7CVHnAKugAI6U5p3tg8B6sNfL4Yahfiw78 kIUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=j3ihhD0ZHA84D+pn8lGxi1w+Kb2uxjSK80OQDiAKnVk=; b=YQ0+NnVG/LT8V6gemP1sYEK38E7eSmGgLSonXipfZm6B3vkxF2gMo1RBOknyW07i5Y sm5wPaMmcYKU2h7208+CvyX76tZk4nwemKJjDJevTJAMCH4YZQ79JsTbDXcDQTBKRWly ljGN/+OKAHqTP8jiqVOki2lHWlBvCABnpnhOMxSc8GpctSl4ukveX5ZkHP0dahkidrhE xx+E1CQ6zj75zPpdiGML3dMBb9+o+qfScbfbH3H30gKwNuW6EaTFmyDJGy0Ssrio7byG CjIiblTEyx1QwFNgi4qqssrfhI4fnbb7Y5e9FJNlTKXUHAM9myNleInKbC33Pld2wY36 +/aQ== X-Gm-Message-State: AJIora+wEQ4QQKvmIY5ijeeuSJ7FRx2RWXHKQms/oskE8ea51csFFMMf s0O7XXIKAlisNkrBBThOVOM= X-Google-Smtp-Source: AGRyM1uuzsOoDqShbcHTiK5eU7ZIAk9IaZ3rdHnKGbZK9nIMW00hg4qW6ro1SRW7bc14ryK5Ck7Yzg== X-Received: by 2002:a17:90b:3d0f:b0:1ed:3b8c:7cb1 with SMTP id pt15-20020a17090b3d0f00b001ed3b8c7cb1mr3148635pjb.44.1656497495225; Wed, 29 Jun 2022 03:11:35 -0700 (PDT) Original-Received: from localhost ([155.94.207.39]) by smtp.gmail.com with ESMTPSA id ip11-20020a17090b314b00b001ec84b0f199sm6205652pjb.1.2022.06.29.03.11.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 03:11:34 -0700 (PDT) In-Reply-To: <87o7yblreq.fsf@gnus.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:235608 Archived-At: Lars Ingebrigtsen writes: > Ihor Radchenko writes: > >> Off topic: Do you know any other way to detect if deeply nested object >> has changed (other than creating a deep copy and using equal)? > > Printing the object to a buffer and then using `buffer-hash' should be > OK for most structures, but would be very slow for large objects. 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. Best, Ihor