Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
2a05bb3e
Commit
2a05bb3e
authored
Nov 12, 2012
by
Tiago Peixoto
Browse files
Guarantee inlining of some important functions
parent
c9afd8cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/graph/fast_vector_property_map.hh
View file @
2a05bb3e
...
...
@@ -164,7 +164,7 @@ public:
void
reserve
(
size_t
size
)
const
{
_checked
.
reserve
(
size
);
}
reference
operator
[](
const
key_type
&
v
)
const
reference
operator
[](
const
key_type
&
v
)
const
__attribute__
((
always_inline
))
{
typename
property_traits
<
IndexMap
>::
value_type
i
=
get
(
_checked
.
index
,
v
);
...
...
src/graph/graph_filtering.hh
View file @
2a05bb3e
...
...
@@ -147,7 +147,7 @@ public:
:
_filtered_property
(
filtered_property
),
_invert
(
invert
)
{}
template
<
class
Descriptor
>
inline
bool
operator
()
(
Descriptor
d
)
const
__attribute__
((
always_inline
))
inline
bool
operator
()
(
Descriptor
d
)
const
{
// ignore if masked
...
...
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