I noticed that it takes about 4-5 seconds to impor...
# hamilton-help
g
I noticed that it takes about 4-5 seconds to import hamilton's Builder: from hamilton.driver import Builder The rest of the package imports are instant. Does this make sense? (I'm using VSCode notebooks and the latest hamilton 1.72.1)
s
It would be the module imports within
driver
Likely the plugins module because you might have a lot of dependencies installed in your environment that Hamilton is loading materializers for?
I think we can optimize this though.
g
I don't know for sure 🙂 Is there a way for me to check that? Yes, it seems to be too slow for apps/models that need to run relatively fast
r
Not sure about within a notebook, but I've used tuna to profile imports. Usually pandas & numpy are pretty slow
👍 2