Get suggestions for how to improve and measure app performance.

*** ** * ** ***

    This file below contains code that is exhibiting performance issues (e.g., slow execution, high CPU usage, memory leaks).
    Analyze the code to identify the specific performance bottlenecks.
    Suggest and implement optimizations to address these bottlenecks.
    Include comments explaining the changes and their expected impact on performance.
    If applicable, add logging or other performance metrics to measure the improvements.

    $CURRENT_FILE

| To run this prompt in Android Studio, click **Gemini** in the sidebar and paste it in the chat field.   
| To save and retrieve prompts in the Studio IDE, go to **Settings \> Gemini \> Prompt Library**.

*** ** * ** ***