]> git.eshelyaron.com Git - emacs.git/commit
Speed up sxhash-equal-including-properties
authorMattias EngdegÄrd <mattiase@acm.org>
Sun, 14 Jan 2024 11:33:12 +0000 (12:33 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 14 Jan 2024 15:16:01 +0000 (16:16 +0100)
commitf1843e87b681fc3f71b8f6265b3f67642c6b5cbc
tree5c75fc2a90bc3d78f30bb556cf08bf37cc930a2d
parent82abb7a59b114c2c9387cc5aad7ae86cb6a29275
Speed up sxhash-equal-including-properties

This function now no longer conses at all.  Previously, it constructed
a list structure of all string intervals for the sole purpose of
hashing.

* src/fns.c (hash_interval): New.
(Fsxhash_equal_including_properties):
Use it instead of collect_interval.

(cherry picked from commit 3869944bb4f9434e0c49063a291ed8a0a33cba50)
src/fns.c