GeminiSpark

Identify And Fix Performance Bottlenecks

When an application is slow or unresponsive and you need to pinpoint the cause.

Prompt

Analyze the following [LANGUAGE] code for performance issues. Profile hotspots, identify inefficient algorithms, memory leaks, or expensive operations. Suggest optimizations with code examples and explain the expected improvement. Code: [CODE SNIPPET]

Fill in these

Swap each placeholder for your own value:

  • [LANGUAGE]
  • [CODE SNIPPET]

Pro tips

  • Describe the input size or typical usage patterns to focus analysis.
  • If possible, include profiling data or runtime observations.

Want to run prompts like this for free?

Try GeminiOmni — a free playground for Gemini-powered chat, images and video.

Try These Prompts Free

Related prompts