Prompt Act as a senior performance engineer. Analyze the following code. Identify: – Hidden allocations – Blocking calls – Thread pool starvation risks Suggest fixes with reasoning. Code: <PASTE CODE>
Author: ErcanOPAK
Docker Build Is Slow Even With Cache
You changed one line… everything rebuilt. Why it happensCOPY instructions invalidate layers. FixCopy dependency files first, source files last.
Kubernetes Pod Restarts With No Error Logs
Looks healthy… until it isn’t. Why it happensThe container is killed before logging (OOMKill). How to confirmCheck pod events, not container logs.
WordPress Login Keeps Failing Behind Cloudflare
Correct password, endless redirects. Why it happensX-Forwarded-Proto header missing → HTTPS confusion. FixForce SSL detection in wp-config.php.
WordPress Suddenly Gets Slow After “Just One Plugin”
Classic WordPress horror story. Why it happensPlugins hook into init and wp_loaded, running on every request. Life-saving moveDisable plugins one by one while profiling (Query Monitor).
Photoshop Slows Down Over Time Without Crashing
No errors, no warnings — just pain. Root causeHistory states and hidden smart objects silently eat RAM. FixLower History States + periodically rasterize unused layers.
Photoshop Export Looks Different on Every Screen
Your design looks perfect… except everywhere else. Why it happensWide-gamut monitors + unmanaged color profiles = visual chaos. FixConvert image to sRGB IEC61966-2.1 before export.
Visual Studio Runs Fine… Until You Attach Debugger
Ever noticed your app slowing down only when debugging? Why it happensThe debugger disables certain JIT optimizations and adds tracking hooks. Why it mattersPerformance bugs may disappear in Release but appear in Debug — or vice versa. Life-saving tipAlways reproduce performance issues using Release + Attach to Process.
C# — GC.Collect() Hurts More Than It Helps
Manual GC kills performance. Rule Let the runtime decide.
C# — async void Event Handlers Swallow Exceptions
Crashes disappear silently. Fix Wrap logic with try/catch and logging.
C# — Equals Without Operator Overload Is Inconsistent
== and Equals() behave differently. Fix Override both consistently.
SQL — LIKE ‘%text%’ Forces Full Table Scan
Leading wildcard kills indexes. Fix Use full-text search where possible.
SQL — ROW_NUMBER() Without Index Is Expensive
Pagination becomes slow on big tables. Fix Index the ORDER BY column.
.NET Core — IHttpContextAccessor Is Not Free
It adds overhead per request. Tip Avoid in hot paths.
.NET Core — Thread Pool Starvation Looks Like CPU Idle
CPU low, requests slow. Cause Blocking async code. Fix Eliminate .Wait() / .Result.
Git — git clean Can Delete Important Files
git clean -fd is destructive. Fix Always dry-run: git clean -n
Git — Rebase Can Rewrite Shared History
Rebasing public branches breaks teammates. Rule Only rebase local, private branches.
AJAX — Network Requests Blocked by Mixed Content
HTTPS page calling HTTP endpoint fails silently. Fix Serve everything over HTTPS.
JavaScript — map() Without Return Creates Undefined Arrays
Easy-to-miss bug. Fix Always return explicitly inside map.
HTML5 — defer Beats async for Script Order
async breaks dependency order. Fix Use defer for predictable loading.
CSS — aspect-ratio Fixes Responsive Media Instantly
Stop using padding hacks. video { aspect-ratio: 16 / 9; }
Windows 11 — Bluetooth Lag Kills Headphones Quality
Hands-free profile switches silently. Fix Disable Hands-Free Telephony in device settings.
Windows 11 — Random App Freezes? It’s Hardware GPU Scheduling
GPU scheduling can cause instability. Fix Disable Hardware-accelerated GPU scheduling.
AI Prompt — SQL Performance Tuning Assistant
Prompt: You are a SQL performance expert. Analyze this query and execution plan. Return: – Index suggestions – Query rewrites – Expected performance impact SQL: <QUERY>
AI Prompt — Refactor Code Without Breaking Behavior
Prompt: Refactor the following code for readability and performance. Rules: – No behavior change – No new dependencies – Explain every important change briefly Code: <PASTE CODE>
AI Prompt — Debugging a Production Error (High Signal)
Prompt: You are a senior software engineer. Analyze the following error log. Explain: 1) Root cause 2) Why it happens intermittently 3) How to fix it safely in production 4) How to prevent it in the future Log: <PASTE LOG HERE>
Docker — Containers Slow Because of OverlayFS
OverlayFS slows heavy file IO. Fix Use volumes for write-heavy paths.
Kubernetes — Pod Restarts Without Errors
Pod restarts but logs are empty. Cause OOMKill (Out Of Memory) Fix Check: kubectl describe pod
WordPress — REST API Auth Failures Behind CDN
CDNs often strip auth headers. Fix Whitelist Authorization header in CDN config.
WordPress — Admin AJAX Causing High CPU Usage
admin-ajax.php can be abused by plugins. Fix Limit or cache AJAX calls; audit plugins.













