mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-28 12:19:54 +00:00
* core: return error and message absence when getting notifications * ios: do not wait for notification messages when server says "no" * do not postpone some notification events, comments * refactor * simplexmq (mapM) * simplexmq (release lock) * ios: inline, more aggressive GHC RTC settings for garbage collection * simplexmq * corrections Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> * refactor ntf delivery * ios: 6.3.4 (build 274) * simplexmq (fix updating last ts) * improve notification for multiple messages * simplexmq --------- Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com>
57 lines
1.4 KiB
C
57 lines
1.4 KiB
C
//
|
|
// hs_init.c
|
|
// SimpleXChat
|
|
//
|
|
// Created by Evgeny on 22/11/2023.
|
|
// Copyright © 2023 SimpleX Chat. All rights reserved.
|
|
//
|
|
|
|
#include "hs_init.h"
|
|
|
|
extern void hs_init_with_rtsopts(int * argc, char **argv[]);
|
|
|
|
void haskell_init(void) {
|
|
int argc = 5;
|
|
char *argv[] = {
|
|
"simplex",
|
|
"+RTS", // requires `hs_init_with_rtsopts`
|
|
"-A64m", // chunk size for new allocations
|
|
"-H64m", // initial heap size
|
|
"-xn", // non-moving GC
|
|
0
|
|
};
|
|
char **pargv = argv;
|
|
hs_init_with_rtsopts(&argc, &pargv);
|
|
}
|
|
|
|
void haskell_init_nse(void) {
|
|
int argc = 7;
|
|
char *argv[] = {
|
|
"simplex",
|
|
"+RTS", // requires `hs_init_with_rtsopts`
|
|
"-A256k", // chunk size for new allocations
|
|
"-H512k", // initial heap size
|
|
"-F0.5", // heap growth triggering GC
|
|
"-Fd0.3", // memory return
|
|
"-c", // compacting garbage collector
|
|
0
|
|
};
|
|
char **pargv = argv;
|
|
hs_init_with_rtsopts(&argc, &pargv);
|
|
}
|
|
|
|
void haskell_init_se(void) {
|
|
int argc = 7;
|
|
char *argv[] = {
|
|
"simplex",
|
|
"+RTS", // requires `hs_init_with_rtsopts`
|
|
"-A1m", // chunk size for new allocations
|
|
"-H1m", // initial heap size
|
|
"-F0.5", // heap growth triggering GC
|
|
"-Fd1", // memory return
|
|
"-c", // compacting garbage collector
|
|
0
|
|
};
|
|
char **pargv = argv;
|
|
hs_init_with_rtsopts(&argc, &pargv);
|
|
}
|