Refactor Core Logic with Rust Solver, API, and Benchmarking#3
Refactor Core Logic with Rust Solver, API, and Benchmarking#3thewildofficial wants to merge 4 commits intoMuneer320:mainfrom
Conversation
thewildofficial
commented
Apr 22, 2025
- Added FastAPI for better concurrency
- Implement asynchronous job processing and benchmarking for puzzle generation
- Refactor puzzle generation to remove process pool executor and run synchronously
- fix: Resolve API errors, add gitignore, and update README
- Add missing 'import asyncio' to api.py to fix background task NameError. - Create .gitignore to exclude build artifacts, venv, and output. - Update README.md with detailed build/run instructions for Rust extension and API.
|
Title: Refactor Core Logic with Rust Solver, API, and Benchmarking Description: This pull request introduces a significant refactoring of the core puzzle generation logic. The primary goal was to enhance performance and scalability by implementing the computationally intensive solving part in Rust and integrating it into the existing Python application via an updated API. This effort also included establishing a benchmarking process and resolving build/runtime issues encountered during integration. Key Changes:
Challenges Addressed & Fixes Implemented: To ensure the stability and correctness of the refactored system, the following issues were resolved:
Verification:
Outcome: This refactoring successfully replaces the previous puzzle generation logic with a significantly faster and more robust Rust-based solution. The application is stable, buildable, and demonstrably more performant, providing a strong foundation for future development. Note: Minor warnings related to deprecated features in |