Performance optimization and Django 5.x compatibility fixes

This commit is contained in:
Oliver Falk
2025-10-29 09:55:28 +01:00
parent a9ddb040d3
commit a7b04dc2f4
9 changed files with 1085 additions and 9 deletions

View File

@@ -90,6 +90,14 @@ JPEG_QUALITY = 85
# Enable optimized robohash implementation for 6-22x performance improvement
ROBOHASH_OPTIMIZATION_ENABLED = True
# Robohash Configuration
# Maximum number of robot parts to cache in memory (each ~50-200KB)
ROBOHASH_CACHE_SIZE = 150 # ~10-30MB total cache size
# Pagan Avatar Optimization
# Maximum number of pagan Avatar objects to cache in memory (each ~100-500KB)
PAGAN_CACHE_SIZE = 100 # ~10-50MB total cache size
# 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