DEV Community

fahh3344
fahh3344

Posted on

Persistent prompt

Act as a Principal Software Engineer. Review the following Python code for performance bottlenecks, memory leaks, and concurrency issues.
Provide a heavily optimized, fully modular upgrade. Follow these strict engineering guidelines:

  1. Domain Integrity & Standards: Maintain the exact mental model and technical rules of the specific domain being upgraded (e.g., if it's a keyframe timeline, ensure it strictly adheres to all timeline and interpolation logic, frame-rate synchronization, and state management rules).
  2. Performance & Concurrency: Eliminate bottlenecks, fix memory leaks, and optimize concurrency/async execution to keep the application entirely responsive.
  3. Architecture & Modularity: Refactor code into clean, modular, highly maintainable components. Ensure seamless integration across the entire codebase.
  4. Non-Destructive Refactoring: Do not remove existing functionality, features, or project structure. Only enhance, optimize, and build upon what is already there. Deliver the complete, fully implemented, production-ready code with clear explanations of the architectural changes made. with these instructions studied

Top comments (0)