Misaka_Company
ed7eaf038b
refactor: optimize performance and code quality with significant improvements
Performance optimizations:
- Pre-load database materials into HashSet (O(1) lookup) instead of O(n) per material query
- Add 60s safety timeout on loading waits to prevent deadlocks
- Simplify navigation loop with while True pattern
Code quality improvements:
- Replace print-based logging with proper logging module
- Add _get_input_value() helper to reduce duplication
- Move all imports to top of file (re, time, TimeoutError)
- Remove redundant docstrings and consolidate logic
- Add detailed module docstring explaining optimizations
Bug fixes:
- Fix iframe variable naming conflicts (detail_main_frame, detail_inner_frame)
- Add error handling for individual order processing failures
- Simplify setup_query_interface() logic
- Change password to placeholder for security
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-13 13:57:59 +08:00
..
2026-02-05 14:56:35 +08:00
2026-02-05 14:56:35 +08:00
2026-02-05 14:56:35 +08:00
2026-02-06 16:40:28 +08:00
2026-02-06 12:21:58 +08:00
2026-02-13 13:57:59 +08:00