Hi Zubair, I'm away from a computer so can't easily do this test, but you could specify ':static-fns' when the code is compiled (especially when using cljs.js to compile by passing it as an opt.)
This would check to see if a known perf issue with JavaScriptCore is occurring. See this for exposition on the option and mention of the perf bug: http://blog.fikesfarm.com/posts/2015-11-03-planck-static-function-dispatch.html - Mike > On Dec 29, 2015, at 6:48 AM, Zubair Quraishi <[email protected]> wrote: > > Hi Mike, > I have managed to reproduce the problem now and put it up on github. So: > > 1) git clone https://github.com/zubairq/cljs-eval-example.git > > 2) cd cljs-eval-example > > 3) lein.sh figwheel > > 4) Go to 127.0.0.1:3449. > > This will bring up a repl in the browser. Enter anything in Chrome or Firefox > works, try : > > (js/alert (test-macro)) > > :Should popup an alert saying 58, but in Mac Safari the browser just hangs. > The test-macro is defined as: > > (defmacro test-macro [& more] 58) > > :and it is imported with: > > (:require-macros > [cljs-eval-example.macros :refer [ test-macro ]]) > > : as explained in your blog post. Am I doing something wrong or is this a bug > in cljs? > > Thanks > Zubair > > -- > Note that posts from new members are moderated - please be patient with your > first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/clojurescript. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/clojurescript.
