You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@toree.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/01/24 21:22:00 UTC

[jira] [Commented] (TOREE-463) Startup performance: initialize ScalaInterpreter earlier and in its own thread

    [ https://issues.apache.org/jira/browse/TOREE-463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16338245#comment-16338245 ] 

ASF GitHub Bot commented on TOREE-463:
--------------------------------------

GitHub user brad-kaiser opened a pull request:

    https://github.com/apache/incubator-toree/pull/151

    [TOREE-463] break out scala interpreter initialization to speed up startup

    The goal of this PR is to decrease Toree's startup time by breaking out the ScalaInterpreter initialization and running it in its own thread. If you count the startup time as the time it takes KernelBootstrap.initizalize to complete, I saw the average startup time go from 8.16s to 5.69s on my laptop. I started the kernel ten times with the original code and my changes.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/brad-kaiser/incubator-toree fast-start

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-toree/pull/151.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #151
    
----
commit 725cc1983c008531b293ef7249ece1a1b57330e2
Author: Brad Kaiser <ka...@...>
Date:   2017-12-19T19:14:30Z

    [TOREE-463] break out scala interpreter initialization to speed up startup.

----


> Startup performance: initialize ScalaInterpreter earlier and in its own thread
> ------------------------------------------------------------------------------
>
>                 Key: TOREE-463
>                 URL: https://issues.apache.org/jira/browse/TOREE-463
>             Project: TOREE
>          Issue Type: Bug
>            Reporter: Brad
>            Priority: Major
>
> The Scala Interpreter is the slowest thing to start up, have it start earlier and run concurrently with the rest of Toree



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)