mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-11-04 23:37:31 +00:00
[GH-ISSUE #914] Executing git_helper.py script is slow #397
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/ComfyUI-Manager#397
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Maslino on GitHub (Jul 31, 2024).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/914
In git_helper.py script, there is an import:
which will import torchvision and torch and this import procedure costs about 2 seconds on my desktop.
Only the download_url function from the big torch package is used. Maybe we should avoid this import and take other measures to improve performance. Because git_helper.py is widely used in ComfyUI-Manager as subprocess.
@ltdrdata commented on GitHub (Jul 31, 2024):
Oh.. Yeah.. I need to patch this.
@Maslino commented on GitHub (Aug 1, 2024):
How to visualize import time:
@ltdrdata commented on GitHub (Aug 1, 2024):
This is patched.