From 1957cec35a2cd9019f44f13d1d43b17f7f913b1a Mon Sep 17 00:00:00 2001 From: Florian Stecker Date: Sat, 11 Oct 2025 14:50:59 -0400 Subject: [PATCH] rename to iavltree.py --- read_tree.py => iavltree.py | 0 perftest.py | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename read_tree.py => iavltree.py (100%) diff --git a/read_tree.py b/iavltree.py similarity index 100% rename from read_tree.py rename to iavltree.py diff --git a/perftest.py b/perftest.py index 2d2de9a..c7b5676 100755 --- a/perftest.py +++ b/perftest.py @@ -1,15 +1,15 @@ #!/usr/bin/env python import plyvel -import read_tree +import iavltree from tqdm import tqdm with plyvel.DB('../node/nodedir/data/application.db') as db: - height = read_tree.max_height(db) + height = iavltree.max_height(db) - total = read_tree.count(db, 's/k:emissions/', height, 'Qss', key = [62]) + total = iavltree.count(db, 's/k:emissions/', height, 'Qss', key = [62]) progress = tqdm(total = total) - it = read_tree.iterate(db, 's/k:emissions/', height, 'Qss', key = [62]) + it = iavltree.iterate(db, 's/k:emissions/', height, 'Qss', key = [62]) for k, v in it: progress.update(1)