diff --git a/treevalue/tree/common/storage.pyx b/treevalue/tree/common/storage.pyx index f039712c36561ef393049824330dd3b30fd7c109..576111ae1ee7c9319e43b6581841d3f697519431 100644 --- a/treevalue/tree/common/storage.pyx +++ b/treevalue/tree/common/storage.pyx @@ -22,6 +22,7 @@ cdef class TreeStorage: cpdef public void set(self, str key, object value) except *: self.map[key] = value + # get and get_or_default is designed separately due to the consideration of performance cpdef public object get(self, str key): cdef object v, nv try: @@ -35,6 +36,7 @@ cdef class TreeStorage: v = self.map.get(key, default) return _c_undelay_check_data(self.map, key, v) + # pop and pop_or_default is designed separately due to the consideration of performance cpdef public object pop(self, str key): cdef object v, nv, res try: