mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-31 04:29:02 +00:00
improvements on the hot code reloading support (#10892)
* calling the "_actual" versions of functions when defined within the same module - slowdown for the snappy compression is now down from x6 to x4-x5 when HCR is ON * dynamically linking to the runtime for VS when HCR is on - binaries are smaller * compilerProcs are also called using the _actual direct version within the module they are defined (system)! * updated comments & goals * handling VS-compatible compilers on Windows in a cleaner way * now the .dll/.so files end up in the nimcache even when --nimcache isn't explicitly stated
This commit is contained in:
committed by
Andreas Rumpf
parent
0b2a3f6f7f
commit
f8146dfd84
@@ -72,7 +72,7 @@ done
|
||||
## executing:
|
||||
## <this_file>.exe nim c --hotCodeReloading:on --nimCache:<folder> <this_file>.nim
|
||||
|
||||
import os, osproc, times, strutils, hotcodereloading
|
||||
import os, osproc, strutils, hotcodereloading
|
||||
|
||||
import nimhcr_0 # getInt() - the only thing we continually call from the main module
|
||||
|
||||
|
||||
Reference in New Issue
Block a user