From 81600208f40bcc3f1a18006fe1f14c6ed22f41ba Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Sat, 14 Feb 2009 00:47:56 +0100 Subject: [PATCH] a slight add-method speedup * module/oop/goops.scm (add-method-in-classes!): Use memq instead of memv. --- module/oop/goops.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/oop/goops.scm b/module/oop/goops.scm index db946f4be..d9a83b8d4 100644 --- a/module/oop/goops.scm +++ b/module/oop/goops.scm @@ -503,7 +503,7 @@ ;; Add method in all the classes which appears in its specializers list (for-each* (lambda (x) (let ((dm (class-direct-methods x))) - (if (not (memv m dm)) + (if (not (memq m dm)) (slot-set! x 'direct-methods (cons m dm))))) (method-specializers m)))