> Please explain this! > >> code path for using vars is now *much* faster for the common case, and you >> must explicitly ask for :dynamic bindability
Earlier vars were looked up each time they were accessed inside functions because there was no way of telling if it was being dynamically rebound or not. Now all vars are cached inside function calls and are not looked up every time. To be able to dynamically rebind vars, the metadata :dynamic needs to be present in which case the vars will be looked up when they are rebound. For global (non-dynamic) vars, there is a universal var counter which is incremented each time a var root is altered and when that change is detected inside functions, they lookup the vars again. Since the function would use the cached var values happily if the global var counter is unchanged, they are now way faster. I hope that helps. Regards, BG -- Baishampayan Ghose b.ghose at gmail.com -- 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