Skip to content

High-value PRs to review first #207

Open

Description

Summary

I have a lot of PRs open, which makes it hard to see which ones matter most. This issue is a guide to the higher-value ones, in priority order, so review time goes to them first.

A PR is here when it is worth far more than the review time it takes: it improves the automated review of every incoming PR, fixes crashes that many users can hit, adds a shared helper that makes contributor PRs smaller and reduces the long term review burden, saves a lot of flash or RAM on real devices, or fixes a performance problem users feel. A helper pays back each time a contributor PR uses it instead of hand-writing the same code, and each time a reviewer no longer has to check that code.

The rest of my open PRs improve things for a smaller slice of users, so they merge as there is time.

PRs

1. Review skill improvements for incoming PRs

  • no open PRs -

2. Crash and use-after-free fixes

3. Helpers that make contributor PRs smaller and reduce long term review burden

These save more review and contributor time than any single memory saving, so they come before it. Each of these adds one shared helper. The migration of existing components, where there is one, is stacked on it and can be reviewed after the helper.

4. Significant memory savings

5. Performance

  • [esphome] Inflate compressed OTA uploads about 5 times faster esphome#21641 [esphome] Inflate compressed OTA uploads about 5 times faster (mergeable, hardware tested): on older BK72xx chips, inflating a compressed OTA upload was slow enough that compression made uploads slower than sending raw on a fast link. With a table lookup in place of reading each Huffman code one bit at a time, a BK7231N goes from 3.8 to about 0.74 µs per inflated byte, so a 2.25 MB UF2 costs about 1.7 s of CPU instead of 8.7 s. It costs about 740 B of flash, and 1.1 KB of heap only while a compressed upload runs; the wire protocol is unchanged.

Completed

1. Review skill improvements for incoming PRs

Nearly every incoming PR eventually gets the automated review, so this helps with almost all of them. It adds to AGENTS.md (which Copilot reads) and the code-review skill the cleanups that multi-pass reviews keep finding in contributor PRs and the automated reviewer almost never flags: copied state, dead guards, member layout, codegen precompute, two-way tables, log noise, final, and parametrized tests. Each pattern came up on at least 3 of 119 contributor PRs. Now that it has merged, the automated review catches these on the first pass, so a human review no longer needs extra rounds to find them. It also points contributors at the shared helpers below.

2. Crash and use-after-free fixes

3. Helpers that make contributor PRs smaller and reduce long term review burden

4. Significant memory savings

Process

  • Add a PR here when its value is clearly larger than its review cost, and say why in one or two lines. Crash and use-after-free fixes, and new helper PRs that make contributor PRs smaller and reduce long term review burden, always qualify.
  • Keep the list in priority order.
  • When a PR merges, move it to Completed under the same category. A category with nothing left open says - no open PRs -. Close this issue when every category has no open PRs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions