On Sun, Feb 3, 2013 at 2:42 AM, Shantanu Kumar <[email protected]>wrote:

> I was able to shave off some more by writing (not= 0 (rem i d)) as (<
> 0 (rem i d)).
>


Haven't tested, but based on past experience I would expect (not (zero?
(rem i d))) to be the fastest way, or possibly
(pos? (rem i d))

In general, zero?, pos?, and neg? are faster than comparing to 0 with = >
and <.

--Mark

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to