Speeding up looper CLI use

Đang mở
#476 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
pandas, python, sqlalchemy
Lĩnh vực
cli, performance

Hướng nghiên cứu

Start by running python -X importtime -c 'import looper' and inspect the looper import paths responsible for loading pandas, peppy, and sqlalchemy via pephubclient. Identify imports that are only needed by specific CLI operations. Done means unnecessary heavy dependencies are deferred until needed and looper CLI startup is faster without changing its behavior.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

I'm unsatisified with how long it takes the looper CLI to run. I guess it's because looper imports a bunch of heavy stuff, like pandas, peppy, sqlalchemy (via pephubclient), etc.

A lot of these aren't necessary.

I suggest we see if it's possible to import some of the heaviest things only as needed, instead of at the top of the file as is typically done.

You can profile import time like this:

python -X importtime -c 'import looper'
Ngôn ngữ chính
Python
Star
25
Fork
7
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pepkit/looper

Tất cả issue của pepkit/looper

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.