almond-sh / almond

A Scala kernel for Jupyter
https://almond.sh
BSD 3-Clause "New" or "Revised" License
1.58k stars 241 forks source link

Installing the Scala kernel in standalone mode can execute code 5X slower than normal mode!! #1244

Open LeeMoonCh opened 10 months ago

LeeMoonCh commented 10 months ago

when I use normal mode install almond. eg: ./coursier launch --fork almond:0.14.0-RC11 --scala 2.12.11 -- --install --force excute this code using 1s finished. image but when use coursier bootstrap --standalone \ almond:0.14.0-RC11 --scala 2.12.11\ -o almond to generate a standalone app named almond. then use almond --install --force to install almond. excute this code using 4-5s finished image

I find normal mode's kernel.json: { "argv": [ "java", "-cp", "/root/.local/share/jupyter/kernels/scala/launcher.jar", "coursier.bootstrap.launcher.Launcher", "--connection-file", "{connection_file}" ], "display_name": "Scala", "language": "scala" }

but standalone mode's kernel.json: { "argv": [ "java", "-cp", "/root/.local/share/jupyter/kernels/scala/launcher.jar", "coursier.bootstrap.launcher.ResourcesLauncher", "--connection-file", "{connection_file}" ], "display_name": "Scala", "language": "scala" }

LeeMoonCh commented 10 months ago

Doesn't anyone look at this question?