1. Mikhail Korobov
  2. marisa-trie

Commits

Mikhail Korobov  committed 3b1a2c6

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

  • Participants
  • Parent commits 4e51f9a
  • Branches default

Comments (0)

Files changed (1)

File src/marisa_trie.pyx

View file
             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).
         """