Rewrite get using nvGet()

Profile data shows much heavier use of ArrayData::nvGet(),
nvGetCell(), and exists(), than get().  So rewrite get()
using nvGet().
Esse commit está contido em:
Edwin Smith
2013-06-25 22:29:22 -07:00
commit de Sara Golemon
commit 685fe164ae
11 arquivos alterados com 33 adições e 109 exclusões
-10
Ver Arquivo
@@ -361,16 +361,6 @@ TypedValue* PolicyArray::nvGetCellImpl(K k) const {
// return toInt64(find(k, m_size));
// }
template <class K>
const Variant& PolicyArray::getImpl(K k, bool error) const {
APILOG << "(" << keystr(k) << ", " << error << ")";
auto const pos = find(k, m_size);
if (pos != PosType::invalid) {
return val(pos);
}
return error ? getNotFound(k) : null_variant;
}
template <class K>
ArrayData *PolicyArray::lvalImpl(K k, Variant*& ret,
bool copy, bool checkExist) {