Files
kjvstudy.org/kjvstudy_org/data
kennethreitz 6c4c23a83e Implement major performance optimizations (Phase 1)
Optimization #2: Replace O(n) verse filtering with cached methods
- Replace manual filtering loops with bible.get_verses_by_book_chapter()
- Replace chapter filtering with bible.get_chapters_for_book()
- 13 replacements in server.py
- Expected: 80-95% faster book/chapter pages after first access

Optimization #3: Build slug index for O(1) resource lookups
- Create pre-built slug indexes for all 38 resource dictionaries
- Replace O(n) linear search with O(1) hash lookup
- Add find_resource_by_slug() function to data module
- Expected: 95% faster resource page lookups

Combined expected improvement: 50-80% overall performance gain

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 12:00:13 -05:00
..