Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native scripts run linker each time #281

Closed
romanowski opened this issue Oct 25, 2021 · 0 comments · Fixed by #372
Closed

Native scripts run linker each time #281

romanowski opened this issue Oct 25, 2021 · 0 comments · Fixed by #372
Labels
bug Something isn't working Scala Native

Comments

@romanowski
Copy link
Member

From @tpasternak :

#!/usr/bin/env scala-cli
using scala 2.13
using native
println("hello")

output:

$  ./ls.sc
Linking (1027 ms)
Discovered 972 classes and 7872 methods
Generating intermediate code (1619 ms)
Produced 4 files
Compiling to native code (760 ms)
Linking native code (immix gc, none lto) (152 ms)
Total (3598 ms)
hello

as a result, it's slow

From @WojciechMazur :

In the Scala Native 0.4.1 sbt caching mechanism will be used to skip subsequent builds, if you'll manage to implement something similar we will be glad to backport it thus allow to use it for all build tools.
What's important for the SN side we need to track both changes to input files and pass NativeConfig.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Scala Native
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant