Commits

Mikhail Korobov committed 3b1a2c6

remove unneeded type constraint; this makes restore_key method 50-100ns faster (5-15% improvement)

Comments (0)

Files changed (1)

src/marisa_trie.pyx

             raise KeyError(key)
         return res
 
-    cpdef unicode restore_key(self, int index):
+    cpdef restore_key(self, int index):
         """
         Return a key given its index (obtained by ``key_id`` method).
         """