Skip to content

Commit

Permalink
FEAT: releasing intermediate sources of modules and protocols after l…
Browse files Browse the repository at this point in the history
…oading these on boot (to reduce memory use a little bit)
  • Loading branch information
Oldes committed Dec 17, 2019
1 parent f101d9f commit 6617792
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/mezz/sys-load.r
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ load-boot-exts: function [
'else [export-words mod hdr/exports]
]
]
set 'boot-exts 'done
set 'load-boot-exts 'done ; only once
]

Expand Down
2 changes: 1 addition & 1 deletion src/mezz/sys-start.r
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ start: func [

foreach [spec body] boot-prot [module spec body]
;do bind-lib boot-prot
;boot-prot: 'done
boot-prot: 'done

;-- User is requesting usage info:
if flags/help [lib/usage quiet: true]
Expand Down

0 comments on commit 6617792

Please sign in to comment.