Commit ffeb15a4db46ee12e8969324e5687d735bf36efe

Thomas de Grivel 2015-03-20T15:44:09

Better performances.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/can.lisp b/can.lisp
index 7b318e1..b17831f 100644
--- a/can.lisp
+++ b/can.lisp
@@ -47,8 +47,8 @@
       (flet ((unify (r x wild)
 	       (if (facts:binding-p r)
 		   (push (cons r x) bindings)
-		   (push `(or (lessp:lessp-equal ,r ,x)
-			      (eq ,r ,wild))
+		   (push `(or (eq ,r ,wild)
+                              (lessp:lessp-equal ,r ,x))
 			 constants))))
 	(unify o object :all)
 	(unify a action :admin)