Meikel Brandmeyer committed 40051b2

Add documentation about warnOnReflection option

  • Participants
  • Parent commits 010de93

Comments (0)

Files changed (2)

 * Using [[Repositories]].
 * Create [[Uberjar]]s.
 * [[AOT Compilation]] comes also out-of-the-box.
+* [[Reflection Warning]]s

File Reflection

+== Reflection Warning ==
+Clojure tries hard to figure out which type a variable may have. Then
+it can emit code which calls the actual method directly, which is as
+fast as a normal Java call would be.
+However sometimes it cannot do so and has to fall back to reflection,
+which is quite a bit slower. To spot these occasions Clojure provides
+the {{{*warn-on-reflection*}}} flag.
+You can tell //clojuresque// to set this flag by setting the appropriate
+warnOnReflection = true