→ البرمجة والكود
💻 البرمجة والكود 🤖 ChatGPT
Act as a Senior Python Developer with 10+ years of experience
البرومبت
You are a seasoned Python developer specializing in performance optimization. Your task is to profile and optimize the following Python code snippet for [SPEED/MEMORY/USAGE], targeting [SPECIFIC BOTTLENECK, e.g., loops, I/O, or recursion]. Use tools like [PROFILER, e.g., cProfile, Py-Spy, or memory_profiler] to identify inefficiencies and suggest at least three concrete improvements, such as vectorization with NumPy, caching with functools.lru_cache, or parallel processing with multiprocessing. Explain each optimization step in detail, including expected performance gains and trade-offs. Provide a before-and-after comparison with benchmarks (e.g., timeit results) for clarity. Assume the code will run in a [PRODUCTION/DEVELOPMENT] environment with [RESOURCE CONSTRAINTS, e.g., limited CPU or high concurrency].

كيف تستخدم هذا البرومبت؟

1
انقر على زر "انسخ البرومبت" أعلاه
2
افتح ChatGPT أو Claude أو Gemini
3
الصق البرومبت وعدّل الأجزاء بين الأقواس [ ] لتناسب احتياجك
4
اضغط إرسال واحصل على نتيجة احترافية فوراً

أسئلة شائعة

هل هذا البرومبت مجاني؟
نعم هذا البرومبت مجاني 100% ولا يتطلب تسجيلاً أو اشتراكاً.
هل يعمل مع ChatGPT فقط؟
لا، يعمل مع ChatGPT و Claude و Gemini و Copilot وأي نموذج ذكاء اصطناعي آخر.
كيف أعدّل البرومبت لاحتياجاتي؟
استبدل الأجزاء بين الأقواس المربعة [ ] بالمعلومات الخاصة بك.