朱莉娅每次都编译脚本吗? [英] Julia compiles the script every time?

查看:170
本文介绍了朱莉娅每次都编译脚本吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Julia语言每次都会编译脚本,我们不是可以用julia编译二进制文件吗? 我尝试了一个带有println函数的小helloworld脚本,茱莉亚花了2.3秒来显示输出!如果我们可以制作二进制文件而不是每次都编译,那会更好

Julia language compiles the script every time, can't we compile binaries with julia instead? I tried a small helloworld script with println function it took like 2,3 seconds for julia to show the output! It would be better if we can make binaries instead of compiling every time

更新:自从我问了这个问题以来,茱莉亚(Julia)发生了一些变化.尽管我不再关注julia的更新了,但是由于我已经问过这个问题,并且如果您正在寻找类似的东西,请查看下面关注julia的人的答案和评论.

Update: There have been some changes in Julia, since I asked this question. Though I'm not following the updates for julia anymore, since I've asked this question and if you're looking for something similar, look into the below answers and comments by people who are following julia.

此外,很高兴知道现在加载脚本大约需要150毫秒.

Also, its good to know that now it takes around 150ms to load a script.

推荐答案

目前,Julia JIT在启动时会编译其整个标准库.我们已经知道了这种情况,目前正在缓存LLVM JIT输出以纠正这种情况,但是直到那时,仍无法解决(使用REPL除外).

At the moment Julia JIT compiles its entire standard library on startup. We are aware of the situation and are currently working on caching the LLVM JIT output to remedy the situation, but until then, there's no way around it (except for using the REPL).

这篇关于朱莉娅每次都编译脚本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆