Finding the artifact path on initialization improves relocatability#134
Conversation
|
What do you mean by relocatability? |
Codecov Report
@@ Coverage Diff @@
## master #134 +/- ##
==========================================
+ Coverage 79.13% 79.22% +0.09%
==========================================
Files 3 3
Lines 230 231 +1
==========================================
+ Hits 182 183 +1
Misses 48 48
Continue to review full report at Codecov.
|
|
We can create sysimages and relocatable-apps for quicker startup time. It is a precompiled library file. Here, the |
|
Ah, you're relocating the sysimage. We should probably have a standard way of doing this across all the solvers then. Is this (a non-const global) the recommended way of setting the paths? Our other option is a |
If you are refactoring across the ecosystem, RelocatableFolders might be something you want to look at (for any |
|
Okay, I tried
There didn't seem to be any difference in performance. So even though the value is not a const, it doesn't affect performance: julia> using ECOS
julia> @code_warntype ECOS.ECOS_ver()
Variables
#self#::Core.Const(ECOS.ECOS_ver)
Body::Cstring
1 ─ %1 = $(Expr(:foreigncall, :(Core.tuple(:ECOS_ver, ECOS.ecos)), Cstring, svec(), 0, :(:ccall)))::Cstring
└── return %1 |
|
Thanks @ven-k. Are you working for JuliaComputing? What are you using ECOS for? |

No description provided.