Reduce overhead when fork(1) (#375)

This commit is contained in:
Liangsheng Yin
2024-04-21 17:25:14 +08:00
committed by GitHub
parent e822e5900b
commit 1bf1cf1953
2 changed files with 20 additions and 7 deletions
@@ -179,7 +179,9 @@ class RadixCache:
def _print_helper(self, node, indent):
for _, child in node.children.items():
print(" " * indent, len(child.key), child.key[:10], f"r={child.ref_counter}")
print(
" " * indent, len(child.key), child.key[:10], f"r={child.ref_counter}"
)
self._print_helper(child, indent=indent + 2)
def _delete_leaf(self, node):