I spot the following problems in your code with respect to primitive functions:
1. You declare functions (ModAdd, ...) with primitive arguments but without primitive return values. So you get boxing on the return values. 2. You pass those primtive functions as argument to EulerPowNonMemoized, you won't get a primitive invocation (.invokePrim opr ...) in that function since the Clojure compiler does only generate primitive invocations for direct calls to primitive functions. Hence, you end up with (.invoke opr ...) and boxing instead. 3. The built-in memoize will also box your arguments and memoized return values again. -- 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 --- 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 clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.