catanatron icon indicating copy to clipboard operation
catanatron copied to clipboard

Improve catanatron-play load time

Open pachewise opened this issue 2 years ago • 1 comments

Right now, even using the --help flag takes a long time. I am assuming it's because we are eagerly importing libraries (for example, numpy, tensorflow) which may not be needed until the actual code is being executed.

This may be a symptom of a broader need for import / loading hygiene.

time catanatron-play --help gave 20s on my MacBook Pro:

image image

pachewise avatar Sep 06 '22 22:09 pachewise

Agreed! Feel free to open a PR on this!

bcollazo avatar Sep 18 '22 15:09 bcollazo