Skip to content

Slow first fluidsim.load (i.e. slow import)

In IPython:

In [1]: from time import perf_counter

In [2]: t0 = perf_counter(); sim = load(hide_stdout=True); print(f"Done in {perf_counter()-t0:.2f} s")
Done in 4.44 s

In [3]: t0 = perf_counter(); sim = load(hide_stdout=True); print(f"Done in {perf_counter()-t0:.2f} s")
Done in 0.01 s

I suspect that this is related to Transonic :-)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information