]> git.eshelyaron.com Git - emacs.git/commit
Normalize cstrs for cache hint effectiveness and test stability
authorAndrea Corallo <akrl@sdf.org>
Sat, 12 Dec 2020 10:50:32 +0000 (10:50 +0000)
committerAndrea Corallo <akrl@sdf.org>
Sat, 12 Dec 2020 15:30:16 +0000 (16:30 +0100)
commit62869453961ec677323ed034465833304686a534
tree5cf7ab334264e386db01cfcd7c40c4d4f4a30ef4
parenta6295d31501a539f3071678e8229a014a037438e
Normalize cstrs for cache hint effectiveness and test stability

* lisp/emacs-lisp/comp-cstr.el (comp-normalize-valset)
(comp-union-valsets, comp-intersection-valsets)
(comp-normalize-typeset): New functions.
(comp-union-typesets, comp-intersect-typesets)
(comp-cstr-union-homogeneous-no-range, comp-cstr-union-1-no-mem):
Update to return normalized results.
* test/lisp/emacs-lisp/comp-cstr-tests.el
(comp-cstr-typespec-tests-alist): Normalize expected type specifiers.
lisp/emacs-lisp/comp-cstr.el
test/lisp/emacs-lisp/comp-cstr-tests.el