Speed up robohash generation

This commit is contained in:
Oliver Falk
2025-10-24 17:42:00 +02:00
parent 96a62fe006
commit b44ee42398
4 changed files with 534 additions and 5 deletions

View File

@@ -86,6 +86,10 @@ MAX_PIXELS = 7000
AVATAR_MAX_SIZE = 512
JPEG_QUALITY = 85
# Robohash Performance Optimization
# Enable optimized robohash implementation for 6-22x performance improvement
ROBOHASH_OPTIMIZATION_ENABLED = True
# I'm not 100% sure if single character domains are possible
# under any tld... so MIN_LENGTH_EMAIL/_URL, might be +1
MIN_LENGTH_URL = 11 # eg. http://a.io