I put an update in my original post, and I also (like you) timed without the side effects I'd inserted (empty-string print statements). Unlike your code, I'm using non-constant strings, which might explain the difference.
I note: The 1,000 string length comparisons take 0.184ms; the negative set test takes 0.281ms; and the positive takes 0.77ms. The string length check, then, is slightly faster, but if the length matches you still have the set test to perform. Probably not worth the complexity. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---