minor performance tuning;
authorwenzelm
Fri, 05 May 2023 23:48:14 +0200
changeset 77973 ab6e4085a19d
parent 77972 305a6902abb3
child 77974 93999ffdb9dd
minor performance tuning;
src/Pure/General/table.ML
--- a/src/Pure/General/table.ML	Fri May 05 23:03:48 2023 +0200
+++ b/src/Pure/General/table.ML	Fri May 05 23:48:14 2023 +0200
@@ -634,7 +634,8 @@
 
 fun make_list args = build (fold_rev cons_list args);
 fun dest_list tab = maps (fn (key, xs) => map (pair key) xs) (dest tab);
-fun merge_list eq = join (fn _ => Library.merge eq);
+fun merge_list eq =
+  join (fn _ => fn args => if eq_list eq args then raise SAME else Library.merge eq args);
 
 
 (* set operations *)