On Nov 14, 2010, at 4:04 PM, Ken Wesson wrote: > Interestingly, (= (count v) 0) is relatively fast (900 msec); (seq v) > is slower (2s); (empty? v) is even slower (3s); and (= v []) is > slowest (16s).
Strange. Here are the timings I get for 1e8 iterations: (zero? (count v)): ~3600 msecs (seq v): ~2300 msecs (empty? v): ~3100 msecs (= v []): ~460 msecs (= 0 (count v)) is even slower than (zero? (count v)). I'm running Clojure 1.2 on a MacBook (Core 2 Duo, 2GHz). -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en