apache / apache/hamilton

[ergonomics] profile driver and base module imports

Open
#1,246 3 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue help wanted repo-hygiene
Dominant language
Jupyter Notebook
Stars
2.6k
Forks
213
PR merge metrics
No merged PRs in 30d

Description

# 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:

1. to use a profiler to figure out where time is being spent
2. report the results
3. provide recommendations

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the `from hamilton import driver, base` import on macOS with Python 3.10, then profile it to identify where the roughly two seconds are spent. Report the profiling results and recommendations; the expected outcome is an import time below one second. No files or tests are named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.