Skip to content

Commit 8469938

Browse files
committed
Substantially increase number of locks to avoid contention
1 parent fc7e0f6 commit 8469938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

provides/include/trade_v1/private/private.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ class Private {
4747

4848
using clock_t = uint64_t;
4949
using signed_clock_t = int64_t;
50-
using lock_ix_t = int16_t;
50+
using lock_ix_t = int32_t;
5151

52-
static constexpr lock_ix_t n_locks = 251;
52+
static constexpr lock_ix_t n_locks = 131071;
5353
static lock_t s_locks[n_locks];
5454

5555
static std::atomic<clock_t> s_clock;

0 commit comments

Comments
 (0)