projects
/
SXSI
/
XMLTree.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add some inlining by hand
[SXSI/XMLTree.git]
/
libcds
/
src
/
static_sequence
/
static_sequence_wvtree.cpp
diff --git
a/libcds/src/static_sequence/static_sequence_wvtree.cpp
b/libcds/src/static_sequence/static_sequence_wvtree.cpp
index
5f958cd
..
ca93594
100644
(file)
--- a/
libcds/src/static_sequence/static_sequence_wvtree.cpp
+++ b/
libcds/src/static_sequence/static_sequence_wvtree.cpp
@@
-103,7
+103,7
@@
vector<int> static_sequence_wvtree::accessAll(uint i, uint j)
if (j < i)
return resultSet;
- resultSet.reserve(j-i+1);
+ // resultSet.reserve(j-i+1); // avoid reallocation
root->access(resultSet, i, j);
for (vector<int>::iterator it = resultSet.begin(); it != resultSet.end(); ++it)
*it = am->unmap(*it);