planck

Planck ClojureScript REPL
2017-01-23T18:38:42.000423Z

getting crazy slow planck startup after upgrading to 2, I'm sure it's not planck itself but something in my environment, but anyone have any ideas how to track down?

mfikes 2017-01-23T18:40:20.000424Z

@bfabry Try planck -X -d to see startup timing. Is it lengthy to get the REPL running?

mfikes 2017-01-23T18:49:52.000425Z

What do you get for time planck -e1?

2017-01-23T18:51:43.000426Z

11326-storage:~ bfabry$ planck -X -d
                                        parse opts:   0.001953   0.001953
                                  check cache path:   0.296078   0.298031
                                    init classpath:   0.010753   0.308784
                                       check theme:   0.004087   0.312871
                                         check tty:   0.008288   0.321159
Planck 2.0.0-beta.6
ClojureScript 1.9.397
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
    Exit: Control+D or :cljs/quit or exit or quit
 Results: Stored in vars *1, *2, *3, an exception in *e

cljs.user=>                                 JS context created:  13.115642  13.436801
                                      goog/deps.js:  41.677061  55.113862
                           goog/reflect/reflect.js:  62.238267 117.352129
                                 goog/math/long.js:   0.254391 117.606520
*snip*

2017-01-23T18:52:31.000427Z

11326-storage:foo bfabry$ time planck -e1
1

real	0m16.338s
user	0m0.268s
sys	0m0.036s

mfikes 2017-01-23T18:52:42.000428Z

Wow. 16 seconds...

2017-01-23T18:52:45.000429Z

haha right

mfikes 2017-01-23T18:52:48.000430Z

What OS?

2017-01-23T18:53:09.000431Z

yosemite 10.10.5

2017-01-23T18:53:55.000432Z

I'm a bit of an "I'll update OSX when I get a new laptop" guy, OSX upgrades just always seem to go badly

mfikes 2017-01-23T18:54:02.000433Z

I can see if I can repro. I have access to a VM running that, and a physical box running Mavericks.

mfikes 2017-01-23T18:54:49.000434Z

Did you install using brew install --devel planck?

2017-01-23T18:54:53.000435Z

I did

mfikes 2017-01-23T18:55:18.000436Z

Do you have the Safari preview installed?

mfikes 2017-01-23T18:55:49.000437Z

(This might cause a different JavaScriptCore to be used.)

2017-01-23T18:56:01.000438Z

safari looks to be 10.0.2

mfikes 2017-01-23T18:57:02.000439Z

OK. firing up my Yosemite VM now.

2017-01-23T18:57:31.000440Z

maybe I should just try and upgrade... ugh, but it'll definitely kill my env and eat a day

mfikes 2017-01-23T18:57:59.000441Z

No… 16-second startup is definitely not caused by an older OS. Something really odd is going on IMHO.

mfikes 2017-01-23T19:01:07.000442Z

I’m getting curl complaining on Yosemite about SSL… gonna see if I can figure that out

mfikes 2017-01-23T19:23:58.000443Z

@bfabry I failed to repro on Yosemite. I’ve opened a ticket where we can add info https://github.com/mfikes/planck/issues/431

mfikes 2017-01-23T19:36:49.000447Z

@bfabry It would be interesting to know what timings you are getting near the end of the -X output. I’m wondering if it is blocking excessively long waiting for the “engine ready” event. Here is what I see:

window global:   0.066482 543.739797
                                      register fns:   0.077711 543.817508
                          monkey-patch system-time:   0.052222 543.869730
                           setup command line args:   0.036790 543.906520
                                        setTimeout:   0.078460 543.984980

                                      engine ready:   0.753364 1789.779455

cljs.user=>

mfikes 2017-01-23T19:41:24.000449Z

Thanks. That looks normal. 1.6 seconds to init JSC