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
4b4d4cc9
Commit
4b4d4cc9
authored
Apr 20, 2012
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pre-allocate only max_size()/2 elements
parent
9d9065a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cppa/abstract_actor.hpp
cppa/abstract_actor.hpp
+2
-1
No files found.
cppa/abstract_actor.hpp
View file @
4b4d4cc9
...
@@ -202,7 +202,8 @@ class abstract_actor : public Base
...
@@ -202,7 +202,8 @@ class abstract_actor : public Base
abstract_actor
(
Args
&&
...
args
)
:
Base
(
std
::
forward
<
Args
>
(
args
)...)
abstract_actor
(
Args
&&
...
args
)
:
Base
(
std
::
forward
<
Args
>
(
args
)...)
,
m_exit_reason
(
exit_reason
::
not_exited
)
,
m_exit_reason
(
exit_reason
::
not_exited
)
{
{
for
(
size_t
i
=
0
;
i
<
m_nodes
.
max_size
();
++
i
)
// pre-allocate some nodes
for
(
size_t
i
=
0
;
i
<
m_nodes
.
max_size
()
/
2
;
++
i
)
{
{
m_nodes
.
push_back
(
new
mailbox_element
);
m_nodes
.
push_back
(
new
mailbox_element
);
}
}
...
...
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