Compare commits

...

4 Commits

Author SHA1 Message Date
Alexander Bondarenko 4b0fe53535 Merge branch 'master' into ab/ios-nse 2024-04-01 16:42:46 +03:00
Evgeny Poberezkin 61de79e2d7 O2 2024-03-30 01:29:01 +00:00
Evgeny Poberezkin bdb0c37820 Merge branch 'master' into ab/ios-nse 2024-03-29 22:59:57 +00:00
Alexander Bondarenko fe4176357e ios: limit RTS memory for NSE 2024-03-29 13:56:41 +03:00
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -25,12 +25,14 @@ void haskell_init(void) {
}
void haskell_init_nse(void) {
int argc = 7;
int argc = 9;
char *argv[] = {
"simplex",
"+RTS", // requires `hs_init_with_rtsopts`
"-A1m", // chunk size for new allocations
"-H1m", // initial heap size
"-M12m", // maximum heap size (25 total - 1 grace - 12 for swift), make GC work harder when approaching the limit
"-Mgrace=1m", // (default, just to make explicit) extra memory to handle "memory exhausted" exception and fail cleanly
"-F0.5", // heap growth triggering GC
"-Fd1", // memory return
"-c", // compacting garbage collector
+1
View File
@@ -74,6 +74,7 @@ when:
library:
source-dirs: src
ghc-options: -O2
executables:
simplex-chat: