Sfoglia il codice sorgente

optimize probe0 for less __eq__ and hash compare

szdytom 1 anno fa
parent
commit
c047eafa7e
1 ha cambiato i file con 0 aggiunte e 1 eliminazioni
  1. 0 1
      src/objects/dict.c

+ 0 - 1
src/objects/dict.c

@@ -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();
 }