[ https://issues.apache.org/jira/browse/TOREE-299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15243106#comment-15243106 ]
Gino Bustelo commented on TOREE-299: ------------------------------------ I think we should try to do this for 0.1.0 because the slow start time reflects poorly. > Create spark context lazily to avoid long startup times for the kernel > ---------------------------------------------------------------------- > > Key: TOREE-299 > URL: https://issues.apache.org/jira/browse/TOREE-299 > Project: TOREE > Issue Type: Improvement > Reporter: Gino Bustelo > Fix For: 0.1.0 > > > Currently the options are to start or not start a kernel at startup time. The > "not start" option leaves it all to the user. > I propose that when the kernel is managing the spark context, that is starts > it lazily when the user first tries to get a hold of the reference. > I tried to do this as part of > https://github.com/apache/incubator-toree/pull/15 but hit some roadblocks > that I did not want to tackle as part of that PR. > Now that the `sc`is a `def` it can easily be made lazy. -- This message was sent by Atlassian JIRA (v6.3.4#6332)