Skip to content

Commit 9b7279a

Browse files
committed
chore: Run tokstyle with 3 cores.
This seems to be the sweet spot for the current tokstyle implementation. 4 cores gives the same speedup, 5 also, 6 makes it slower, and 2 also makes it slower.
1 parent f5f22a5 commit 9b7279a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

testing/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ sh_test(
1212
name = "cimple_test",
1313
size = "small",
1414
srcs = ["//hs-tokstyle/tools:check-cimple"],
15-
args = ["$(locations %s)" % f for f in CIMPLE_FILES],
15+
args = ["$(locations %s)" % f for f in CIMPLE_FILES] + ["+RTS", "-N3"],
1616
data = CIMPLE_FILES,
1717
tags = ["haskell"],
1818
)

toxcore/Messenger.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@
2020
#include "state.h"
2121
#include "util.h"
2222

23-
//!TOKSTYLE-
2423
static_assert(MAX_CONCURRENT_FILE_PIPES <= UINT8_MAX + 1,
2524
"uint8_t cannot represent all file transfer numbers");
26-
//!TOKSTYLE+
2725

2826
static int write_cryptpacket_id(const Messenger *m, int32_t friendnumber, uint8_t packet_id, const uint8_t *data,
2927
uint32_t length, uint8_t congestion_control);

0 commit comments

Comments
 (0)