fix: memory compression on session loading

This commit is contained in:
martin legrand
2025-03-28 15:41:54 +01:00
parent fcda0abc21
commit dae2c224e5
2 changed files with 10 additions and 3 deletions
+1 -2
View File
@@ -76,7 +76,6 @@ def animate_thinking(text, color="status", duration=2):
print(colored(f"{symbol} {text}", term_color), flush=True)
time.sleep(0.1)
print("\033[1A\033[K", end="", flush=True)
print()
animation_thread = threading.Thread(target=_animate)
animation_thread.start()
animation_thread.join()
@@ -94,6 +93,6 @@ def timer_decorator(func):
start_time = time()
result = func(*args, **kwargs)
end_time = time()
print(f"{func.__name__} took {end_time - start_time:.2f} seconds to execute")
pretty_print(f"{func.__name__} took {end_time - start_time:.2f} seconds to execute", "status")
return result
return wrapper