Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gaudi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaudi
Gaudi
Commits
c9dc55cf
There was a problem fetching the pipeline summary.
Commit
c9dc55cf
authored
7 years ago
by
Marco Clemencic
Browse files
Options
Downloads
Plain Diff
CommonMessaging: Improved inlining and branch predicition (mr
!600
)
partial overlap with
!574
parents
a51bde7d
0e1ef223
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!600
CommonMessaging - Improved inlining and branch predicition
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GaudiKernel/GaudiKernel/CommonMessaging.h
+14
-10
14 additions, 10 deletions
GaudiKernel/GaudiKernel/CommonMessaging.h
with
14 additions
and
10 deletions
GaudiKernel/GaudiKernel/CommonMessaging.h
+
14
−
10
View file @
c9dc55cf
...
...
@@ -158,20 +158,24 @@ private:
// out-of-line 'cold' functions -- put here so as to not blow up the inline 'hot' functions
void
create_msgStream
()
const
override
final
{
m_msgStream
.
reset
(
new
MsgStream
(
msgSvc
(),
this
->
name
()
)
);
}
/// Initialise the messaging objects
void
initMessaging
()
const
{
if
(
!
m_msgsvc
)
{
// Get default implementation of the message service.
m_msgsvc
=
this
->
serviceLocator
();
}
create_msgStream
();
m_level
=
MSG
::
Level
(
m_msgStream
.
get
()
?
m_msgStream
->
level
()
:
MSG
::
NIL
);
// if we could not get a MessageSvc, we should try again the initial set up
m_commonMessagingReady
=
m_msgsvc
;
}
protected
:
/// Set up local caches
MSG
::
Level
setUpMessaging
()
const
{
if
(
!
m_commonMessagingReady
)
{
if
(
!
m_msgsvc
)
{
// Get default implementation of the message service.
m_msgsvc
=
this
->
serviceLocator
();
}
create_msgStream
();
m_level
=
MSG
::
Level
(
m_msgStream
.
get
()
?
m_msgStream
->
level
()
:
MSG
::
NIL
);
// if we could not get a MessageSvc, we should try again the initial set up
m_commonMessagingReady
=
m_msgsvc
;
}
if
(
UNLIKELY
(
!
m_commonMessagingReady
)
)
{
initMessaging
();
}
return
m_level
;
}
/// Reinitialize internal states.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment