Skip to content

Commit

Permalink
chore: Run tokstyle with 3 cores.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
iphydf committed Jan 12, 2022
1 parent f5f22a5 commit 9b7279a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion testing/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sh_test(
name = "cimple_test",
size = "small",
srcs = ["//hs-tokstyle/tools:check-cimple"],
args = ["$(locations %s)" % f for f in CIMPLE_FILES],
args = ["$(locations %s)" % f for f in CIMPLE_FILES] + ["+RTS", "-N3"],
data = CIMPLE_FILES,
tags = ["haskell"],
)
Expand Down
2 changes: 0 additions & 2 deletions toxcore/Messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
#include "state.h"
#include "util.h"

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

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

0 comments on commit 9b7279a

Please sign in to comment.