mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-14 04:04:03 +00:00
Performance optimization and Django 5.x compatibility fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user