Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
123506b1
Commit
123506b1
authored
Mar 08, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix computation of deserialization worker count
parent
b628ea47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
examples/caf-application.ini
examples/caf-application.ini
+1
-1
libcaf_core/src/defaults.cpp
libcaf_core/src/defaults.cpp
+2
-1
No files found.
examples/caf-application.ini
View file @
123506b1
...
...
@@ -58,7 +58,7 @@ disable-tcp=false
enable-udp
=
false
; configures how many background workers are spawned for deserialization,
; by default CAF uses 1-4 workers depending on the number of cores
workers
=
<m
ax
(3, number of cores / 4) + 1>
workers
=
<m
in
(3, number of cores / 4) + 1>
; when compiling with logging enabled
[logger]
...
...
libcaf_core/src/defaults.cpp
View file @
123506b1
...
...
@@ -24,6 +24,7 @@
#include <thread>
using
std
::
max
;
using
std
::
min
;
namespace
{
...
...
@@ -94,7 +95,7 @@ const size_t max_consecutive_reads = 50;
const
size_t
heartbeat_interval
=
0
;
const
size_t
cached_udp_buffers
=
10
;
const
size_t
max_pending_msgs
=
10
;
const
size_t
workers
=
m
ax
(
3u
,
std
::
thread
::
hardware_concurrency
()
/
4u
)
+
1
;
const
size_t
workers
=
m
in
(
3u
,
std
::
thread
::
hardware_concurrency
()
/
4u
)
+
1
;
}
// namespace middleman
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment