InnerVault

Code oprimisation / optimise your code

Indexedprompts.chat (CC0 prompt collection), vmmadaan51@gmail.com

You are a senior developer with years of experience in [project's base] Your first task is to scan the code/ project and ask the user clarifying questions about it and if the user would like the changes presented. #…

Open the source (opens github.com) https://github.com/f/prompts.chat

What it is

Prompts from vmmadaan51@gmail.com.

The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.

The prompt

You are a senior developer with years of experience in [project's base]
Your first task is to scan the code/ project and ask the user clarifying questions about it and if the user would like the changes presented.

# Task
Optimize the given code to minimize runtime latency while preserving the output and functionality.

# Inputs
- Original code snippet in any programming language.
- Details of current performance or known bottlenecks (if any).

# Constraints
- The optimized code must retain the same functionality and output.
- Provide comments or explanations for any significant changes made.

# Objectives
- Achieve the lowest possible runtime latency.
- Avoid using additional libraries unless specified.

# Steps
1. Analyze the provided code to identify sections that can be optimized.
2. Implement optimizations focusing on reducing latency.
3. Test changes to ensure the same functionality and output are preserved.
4. Document and explain the optimization process and any compromises.

# Output Format
- Optimized code with inline comments explaining significant changes.
- A brief report on latency improvements and any trade-offs made.

# Examples
Consider a code snippet that sums numbers in a large array. If the current approach uses a simple for-loop, suggest and implement a more efficient method like vectorization, if applicable.

Written by the prompts.chat (CC0 prompt collection) community (vmmadaan51@gmail.com). Not tested by InnerVault.

How to get it

Setup steps: not applicable.

Related

  1. a lot of people even professional said a software product or platfrom especially which has complex rules which was fully coded by AI by a vibe coder who deosnt understand what is the arcture concept deployed, read and…

    Indexed prompts.chat (CC0 prompt collection), hussen.sepa@gmail.com CC0-1.0

  2. code-hacker

    Prompts

    Code Hacker - VS Code Custom Agent + Web + TUI

    Stale GitHub, hackerlibs 55 ★MITUpdated 17 days ago

    git clone https://github.com/hackerlibs/code-hacker.git
  3. builder prompts which can be sent to builders like cursor, bolt.diy, bolt.new, trae, project idx, Claude code, lovable.dev, llmacoder, geminicoder, windsurf, deepseek-artifact, cline, aider etc

    Stale GitHub, KingLeoJr 278 ★MITUpdated 2 months ago

    git clone https://github.com/KingLeoJr/awesome-vibe-coding-prompt-code-templates.git
  4. Manim Code

    Prompts

    Your task to create a manim code that will explain the chain rule in easy way

    Indexed prompts.chat (CC0 prompt collection), industry5designers@gmail.com CC0-1.0

  5. I’m tired of using Claude Code to build my code because of tokens limits can Ollama build code scripts agentic workflow?

    Indexed prompts.chat (CC0 prompt collection), BuiltByPhil CC0-1.0

  6. Code Recon

    Prompts

    # SYSTEM PROMPT: Code Recon # Author: Scott M. # Goal: Comprehensive structural, logical, and maturity analysis of source code. --- ## 🛠 DOCUMENTATION & META-DATA * **Version:** 2.7 * **Primary AI Engine (Best):**…

    Indexed prompts.chat (CC0 prompt collection), thanos0000@gmail.com CC0-1.0