Coding · Advanced

Refactoring code to satisfy strict size constraints

Analyze code to reduce binary footprint while preserving logic and competitive performance.

Use with BotBento Markdown

Opens BotBento. Paste the prompt into a bot; nothing is preconfigured.

  1. When you askSubmit code and target size budget
  2. ThenProfile byte usage and minify logic
  3. ResultReview optimized build and tests

Inspect source code to identify byte-heavy patterns, simplify data structures, and prune redundant logic to meet strict size targets. The bot runs automated test suites and benchmarks after each refactoring pass to verify correctness against baseline engines.

Prompt to start with

BotBentoRecommended
Analyze the target codebase for size optimization opportunities such as data structure compacting and logic trimming. Run test matches against the baseline test suite in terminal to verify rule compliance and performance. Do not commit or push changes to github without user approval.