Skip to content

Conversation

@w-e-w
Copy link
Collaborator

@w-e-w w-e-w commented Feb 7, 2025

Description

currently every time when the SD models scanned (on webui start up, model refresh)
it re-calculate the old partial hash (which we don't use) this massive waste
I see no reason not to cache it like we do for hahses.sha256()

additional change

use not equal when comparing mtime
I can't think of reason why the mtime check for sha256 is > and not !=, so I change it to !=

Checklist:

w-e-w and others added 2 commits February 8, 2025 02:46
@catboxanon catboxanon merged commit 8c7bc08 into dev Feb 10, 2025
6 checks passed
@catboxanon catboxanon deleted the old-hash-form-cache branch February 10, 2025 07:14
@w-e-w w-e-w mentioned this pull request Feb 15, 2025
4 tasks
w-e-w added a commit to w-e-w/stable-diffusion-webui that referenced this pull request May 2, 2025
* use not equal when comparing mtime

* cache partial hash

aka old hash

Co-Authored-By: npc-riddlah <[email protected]>

---------

Co-authored-by: npc-riddlah <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants