Note that, even if *unchecked-math* is true when compiling, the unchecked operations are used only when both operands are primitive; if either operand is boxed, normal Clojure arithmetic is used (see this message from Stuart Sierra on the Clojure Google group). This can be worked around by adding type hints (e.g. ^long) where necessary.
Note that, even if `*unchecked-math*` is true when compiling, the unchecked operations are used only when both operands are primitive; if either operand is boxed, normal Clojure arithmetic is used (see [this message](http://groups.google.com/group/clojure/msg/532b32950db75f56) from Stuart Sierra on the Clojure Google group). This can be worked around by adding type hints (e.g. `^long`) where necessary.
Comments top
1 comment(s) for *unchecked-math*.
Note that, even if
*unchecked-math*is true when compiling, the unchecked operations are used only when both operands are primitive; if either operand is boxed, normal Clojure arithmetic is used (see this message from Stuart Sierra on the Clojure Google group). This can be worked around by adding type hints (e.g.^long) where necessary.