Aetox performance

From Mikedev115/Aetox · View interactive version

Aetox performance is an AI agent skill from the GitHub repository Mikedev115/Aetox. ตอนมีอะไรช้า หรือถูกขอให้หาคอขวดและทำให้เร็วขึ้น บิ้ว เปิดแอป หน้าจอ คิวรี รีเควสต์ การโหลดข้อมูล รวมถึงชี้ว่าสถาปัตยกรรมการโหลดข้อมูลผิดตรงไหน

How to use this skill

Skill file

Aetox Performance

A bottleneck is a number at a line. A fix is the same number, smaller by

more than the measurement's own swing. No number, no finding; no second

number, no fix. Everything else is a hunch, and is labelled as one.

First, the number and its noise

  1. Say what "slow" is: which action, measured from where to where, and

what fast enough would be. When the user cannot say, measure the thing

they pointed at end to end and put the first number on it.

  1. Measure the baseline five times or more, same command, same inputs.

The spread is the noise. A later change smaller than the spread is not

a result. This machine swung ±107% on one benchmark with nothing

changed (BENCHMARK.md); the noise is measured before any fix is judged.

  1. Profile before reading. The tool per stack is in references/tools.md.

Read the top of the profile; the first thing to fix is the top entry,

not the one that looks interesting.

  1. Open source files only where the profile or the timing points. A grep

for anti-patterns is the last resort, and its hits are leads, each one

read and timed before it is called a cause.

Where the time usually is

In the order it is usually found:

awaited before the next is started when they do not depend on each

other. The signature is wall time far above CPU time.

per request, a parse of the same bytes per call.

pagination; a list that grew past what its O(n²) loop was written for.

computation on every render or keystroke.

needed later; on every request for something static.

cgo dependency, a bundle that pulls a library for one function. The

build tool has its own profile (references/tools.md); it is read the

same way.

When the architecture is the finding

Some slowness has no line to fix: the shape of the loading is the cost.

The signs, with what each looks like in a profile, are in

references/data-loading.md. The short list: fetch-on-render waterfalls

across components; one request per item; a startup that loads everything;

the same data fetched in three places with no shared cache; a store with

no index on the column every query filters by; data kept in the shape it

is written in and read a thousand times; a synchronous call per row across

a process boundary.

An architecture finding is written like any other, with its number, and

then names the shape that fixes it and what would change. It is not

rebuilt in the same turn: a reshape is a design change and goes through

aetox-brainstorm for the yes first.

Fixing

command and the same number of runs. Kept only when it moved beyond the

noise; otherwise reverted, and the report says it did not move.

parallel) · do it later (defer) · do it faster. A fix from the first

three usually beats any from the last.

a dropped field) is a design change and is asked about before it is

made.

asked for.

it with), the fix is proposed as a diff and not applied. "The change is

obviously right, the user can measure it" is the claim the noise rule

exists for; the baseline comes before the edit, not after.

estimate for a fix not yet made is a range from the measured baseline,

never "much faster".

What is not a finding

Report

  1. One line: the bottleneck (number, where) and what was done (before →

after, with the noise), or what is proposed.

  1. Findings, each with: Evidence (the number, the profile line,

file:line) · Share of the total · Cause · Fix, applied or proposed ·

Result, measured.

  1. What was measured and how to run it again.
  2. What was not investigated, and why. A lead that was seen and not

followed is listed here, not dropped.

Hand-offs

aetox-debug for the cause, then back here for the number.

aetox-idea-to-architecture when it is a new system.

aetox-code-review's; this skill supplies the numbers.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.