dd70a16443
Replaced O(n) list iteration with O(1) dictionary lookup in the `get_provider_preset` endpoint. A mapping (`PROVIDER_PRESETS_MAP`) is initialized at module load time to enable constant-time retrieval. 💡 **What:** Optimized retrieval of mail provider presets. 🎯 **Why:** To improve efficiency and scalability of the lookup process. 📊 **Measured Improvement:** Baseline (list lookup) took ~0.54s for 1M iterations, while optimized (dict lookup) took ~0.12s, resulting in a ~77% performance improvement for lookups. Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>