Fork me on GitHub
#planck
<
2017-01-23
>
bfabry18:01:42

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?

mfikes18:01:20

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

mfikes18:01:52

What do you get for time planck -e1?

bfabry18:01:43

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*

bfabry18:01:31

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

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

mfikes18:01:42

Wow. 16 seconds...

bfabry18:01:45

haha right

bfabry18:01:09

yosemite 10.10.5

bfabry18:01:55

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

mfikes18:01:02

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

mfikes18:01:49

Did you install using brew install --devel planck?

mfikes18:01:18

Do you have the Safari preview installed?

mfikes18:01:49

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

bfabry18:01:01

safari looks to be 10.0.2

mfikes18:01:02

OK. firing up my Yosemite VM now.

bfabry18:01:31

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

mfikes18:01:59

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

mfikes19:01:07

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

mfikes19:01:58

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

mfikes19:01:49

@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=>

mfikes19:01:24

Thanks. That looks normal. 1.6 seconds to init JSC