optimize probe0 for less __eq__ and hash compare

This commit is contained in:
方而静 2024-06-13 23:09:24 +08:00
parent 5e6226729a
commit c047eafa7e

View File

@ -78,7 +78,6 @@ static int pkpy_Dict__probe0(const pkpy_Dict* self, void* vm, pkpy_Var key, int6
struct pkpy_DictEntry* entry = &c11__getitem(struct pkpy_DictEntry, &self->_entries, idx);
if(pkpy_Var__is_null(&entry->key)) return h;
if(entry->hash == hash && pkpy_Var__eq__(vm, entry->key, key)) return h;
}
PK_UNREACHABLE();
}