hitsave-io / xyz

Monorepo for HitSave
1 stars 0 forks source link

client: fibo example is slow #154

Open EdAyers opened 1 year ago

EdAyers commented 1 year ago
@experiment
def fibo(n):
    print(f"computing fibo({n})")
    if n < 3:
        return 1
    else:
        return fibo(n - 1) + fibo(n - 2)

print(fibo(50))

Takes ages because it is pickling and unpickling these numbers. There are a few things slowing this down: