hamilton
hamilton copied to clipboard
[ergonomics] profile driver and base module imports
Current behavior
It takes ~2 seconds to do:
from hamilton import driver, base
We should profile this and see where the time is being spent.
Library & System Information
Latest hamilton on macOS, python 3.10.
Expected behavior
It should load in < 1 second.
Additional context
This is a quality of life task.
This task requires:
- to use a profiler to figure out where time is being spent
- report the results
- provide recommendations
Blech, pandas gets imported regardless. Second time importing after a fresh install it's faster, but still not great.
First time:
Second time:
import pandas as pd
Takes ~1 second for me. So that's not all of the issue.