提交 8d0b8479 编写于 作者: A Alexey Milovidov

dbms: development [#CONV-2944].

上级 dcff4644
......@@ -188,7 +188,7 @@ public:
else
++ptr;
while (ZeroTraits::check(ptr->first) && ptr < container->buf + container->buf_size())
while (ptr < container->buf + container->buf_size() && ZeroTraits::check(ptr->first))
++ptr;
return *this;
......@@ -222,7 +222,7 @@ public:
else
++ptr;
while (ZeroTraits::check(ptr->first) && ptr < container->buf + container->buf_size())
while (ptr < container->buf + container->buf_size() && ZeroTraits::check(ptr->first))
++ptr;
return *this;
......@@ -239,7 +239,7 @@ public:
return const_iterator(this, zero_value());
const Value * ptr = buf;
while (ZeroTraits::check(ptr->first) && ptr < buf + buf_size())
while (ptr < buf + buf_size() && ZeroTraits::check(ptr->first))
++ptr;
return const_iterator(this, ptr);
......@@ -251,7 +251,7 @@ public:
return iterator(this, zero_value());
Value * ptr = buf;
while (ZeroTraits::check(ptr->first) && ptr < buf + buf_size())
while (ptr < buf + buf_size() && ZeroTraits::check(ptr->first))
++ptr;
return iterator(this, ptr);
......
......@@ -118,7 +118,7 @@ int main(int argc, char ** argv)
<< " (" << n / watch.elapsedSeconds() << " elem/sec.)"
<< std::endl;
}
/*
{
Stopwatch watch;
......@@ -133,9 +133,9 @@ int main(int argc, char ** argv)
<< ", elapsed: " << watch.elapsedSeconds()
<< " (" << n / watch.elapsedSeconds() << " elem/sec.)"
<< std::endl;
}*/
}
/*{
{
Stopwatch watch;
google::sparse_hash_map<Key, Value> map;
......@@ -148,7 +148,7 @@ int main(int argc, char ** argv)
<< ", elapsed: " << watch.elapsedSeconds()
<< " (" << n / watch.elapsedSeconds() << " elem/sec.)"
<< std::endl;
}*/
}
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册