mirror of
https://github.com/stashapp/stash.git
synced 2026-03-28 08:01:57 +01:00
This update provides additional performance improvements specifically targeted at large image libraries (e.g. 300k+ images): 1. Optimized the exact match SQL query for images: - Added filtering for zero/empty fingerprints to avoid massive false-positive groups. - Added a LIMIT of 1000 duplicate groups to prevent excessive memory consumption and serialization overhead. - Simplified the join structure to ensure better use of the database index. 2. Parallelized the Go comparison loop in pkg/utils/phash.go: - Utilizes all available CPU cores to perform Hamming distance calculations. - Uses a lock-free design to minimize synchronization overhead. - This makes non-zero distance searches significantly faster on multi-core systems. |
||
|---|---|---|
| .. | ||
| boolean.go | ||
| date.go | ||
| date_test.go | ||
| doc.go | ||
| func.go | ||
| http.go | ||
| image.go | ||
| map.go | ||
| map_test.go | ||
| mutex.go | ||
| mutex_test.go | ||
| phash.go | ||
| reflect.go | ||
| reflect_test.go | ||
| resources.go | ||
| strings.go | ||
| strings_test.go | ||
| time.go | ||
| url.go | ||
| url_test.go | ||
| urlmap.go | ||
| urlmap_test.go | ||
| user_agent.go | ||
| vtt.go | ||
| vtt_test.go | ||