1.4.1 / linter 0.2.0 / LSP 0.4.0 plan
Status: release complete; historical plan. Benchmark foundation (#73-#77), the
#78 optimization with the accepted retained no-loss result, linter config
(#80/#81), mutation and differential fuzz hardening (#82/#83), and release
attestation (#71) landed. Benchmark methodology and per-release evidence (#79)
are published, and #84 is complete. adotenv, adotenv-process,
adotenv-cli, adotenv-lint and adotenv-lsp were published on 2026-11-11;
their release checksums and attestations verify. The benchmark contract below
records the original plan; the published
methodology and
scenario catalogue are authoritative where they
differ.
This release cycle combines a reproducible competitive benchmark lab, concrete
hardening work and one focused editor feature. The core release is a patch
because the selected work is internal performance, correctness and tooling, not
a new core API. adotenv-lint gains a reusable configuration API and
adotenv-lsp gains explicit lint configuration.
Release versions
Section titled “Release versions”| Crate | Version |
|---|---|
adotenv, adotenv-process, adotenv-cli |
1.4.1 |
adotenv-lint |
0.2.0 |
adotenv-lsp |
0.4.0 |
adotenv-config, adotenv-figment |
unchanged |
If benchmark-driven work adds a genuinely public core API, stop and revisit the core version before release.
Decisions
Section titled “Decisions”- Compare adotenv only on feature-comparable modes: value parsing, file loading and their memory footprints. Literal resolution is not comparable because the competitors interpolate with different policies; lossless document, edit, format and sort workloads are internal-only because competitors do not retain the same state.
- The release target is a strict win in every comparable speed, peak-heap and allocation cell, with retained heap no worse than every competitor, using medians and reported spread. A strict retained-heap win would require a new compact values API and is deferred to a later minor release.
- Competitors are pinned:
dotenvy0.15.7,dotenv0.15.0,dotenvs0.2.2,dotenv-parser0.1.3 anddotenv-flow0.16.2.dotenv-ngis deferred until its loader/CLI surface can be compared without semantic ambiguity. - Memory uses an isolated-process counting allocator for peak/retained heap and allocations, plus RSS where available. Linux is the reference platform; deterministic instruction/cycle counting uses Valgrind Callgrind. No DHAT cross-check is part of this cycle.
- Internal regressions are gated by deterministic instruction/cycle and allocation counts on Linux. Competitor wall-time is release evidence, not a PR gate.
- Publication-grade runs execute on a dedicated reference benchmark host
through a single-slot serialized
pueuequeue (groupbench, one slot). Tasks are serialized; no host-wide tuning or other projects’ queue changes. adotenv-lspdefaults to no lint policy.--config <path>is explicit;--discover-lint-configis the only opt-in discovery mode.
Benchmark contract
Section titled “Benchmark contract”Comparable matrix
Section titled “Comparable matrix”- Fixture sizes: 8, 128, 1,000, 10,000 and 100,000 entries.
- Comparable shapes: plain assignments, long literal values and empty source. Quoted/escaped, Unicode, BOM/CRLF, comments/export/bare, duplicates, malformed, multiline, references/operators and realistic mixtures are internal fixtures because the pinned competitors disagree on their semantics.
- Comparable modes: values parsing, file loading, and their peak and retained memory. Literal resolution is marked unsupported; lossless parsing, lookup, references, resolve, edits, formatting, sorting, comparison and CLI experiments are internal modes.
- The fixture SHA-256 is recorded with every row. The fingerprint records the
git SHA, rustc, OS, CPU, kernel, load and the tool versions that were run;
dependency versions are pinned by
Cargo.lock.
Metrics
Section titled “Metrics”- Speed: Criterion medians with the reported spread for libraries; hyperfine is available for local CLI experiments but no CLI release claim is published. Minimum work per sample must be large enough to keep noise below the reported margin.
- Memory: peak live heap, retained live heap, allocation count and RSS.
- Internal regressions: deterministic
Ir/cycles and allocation counts. - Publication: JSON plus Markdown under
docs/benchmarks/, with a fingerprint header and a result schema.
Host and execution
Section titled “Host and execution”- Canonical host: dedicated quiet Linux x86_64 benchmark host over SSH.
- Queue: single-slot serialized
pueuequeue (benchgroup, one parallel slot). Queue one complete run at a time. - Do not stop, reconfigure or quiesce other projects’ services, CI runners or host-wide CPU/swap settings.
- Record load and fingerprint; reject publication runs that fail the fingerprint or noise checks.
Workstreams
Section titled “Workstreams”| # | Work | Estimate |
|---|---|---|
| #73 | adotenv-bench crate and deterministic fixture corpus |
2 days |
| #74 | Pinned competitor adapters and semantic normalization | 1.5 days |
| #75 | Isolated memory/allocation harness | 1.5 days |
| #76 | CLI/report pipeline and remote queue scheduling | 2 days |
| #77 | Deterministic performance/allocation CI gates | 1.5 days |
| #78 | Strict beat-all optimization pass | 3 days + contingency |
| #79 | Benchmark methodology and per-release results | 1 day |
| #80 | Shared linter configuration loader | 2 days |
| #81 | Explicit and opt-in LSP lint configuration | 1.5 days |
| #82 | Mutation-survivor triage | 0.5 day |
| #83 | Differential parser fuzz target/corpus | 1 day |
| #71 | Build-provenance attestations and release assets | 1 day |
| #84 | Release preparation and evidence | 0.5 day |
Base estimate: 18.5-20 days, plus benchmark-driven optimization contingency. If the optimization exposes deep parser or allocator work, the optimization issue absorbs the contingency before release.
Sequencing
Section titled “Sequencing”- Benchmark foundation - #73, #74, #75, #76.
- Baseline and optimization - establish the complete reference-host baseline, then #78; add #77 once the result schema and metrics are stable.
- Companion feature - #80 and #81 can proceed in parallel with benchmark harness work that does not touch core hot paths.
- Hardening - #71, #82 and #83.
- Evidence and release - #79 and #84. Do not tag until the benchmark matrix, hardening evidence and release dry run pass.
Risks and boundaries
Section titled “Risks and boundaries”- A strict win on every tiny input may be dominated by fixed setup costs. The harness must use enough work per sample and report uncertainty; retain no-loss cells rather than silently dropping them. Retained-heap ties are explicitly accepted for this patch release.
- Some competitor shapes are not semantically comparable. Exclude them with an explicit reason; never count an unsupported run as a win.
- The reference benchmark host is shared. Serialize through
pueueand accept scheduling delay rather than changing host settings. - Keep the core dependency-free and
no_std; benchmark-only crates and competitor dependencies stay out of the published core. - If the benchmark work reveals a public core API addition, re-open the core-version decision instead of shipping it as 1.4.1.