Fork me on GitHub
#clara
<
2016-09-14
>
mikerod15:09:34

@flavio yeah, I would say that reflection does have a significant performance penalty, but all of what Will had to say about it is probably the standard advice there.

mikerod15:09:29

Also, see the official Clojure stance http://clojure.org/reference/java_interop#typehints which I believe is written by Rich himself

mikerod15:09:41

In our applications, we don’t want to risk/spend the performance penalty though, so we aggressively eliminate reflection warnings. The Clara compiler does give some effort in ensuring type hints are automatically added where the Clara compiler can effectively infer the types. However, that only goes so far.