mirror of
https://github.com/zed-industries/zed.git
synced 2026-08-24 16:34:46 +00:00
Adds a narrow `benchmarks` feature to `multi_buffer`, gating `MultiBuffer::build_simple_for_benchmarks`/`build_random_for_benchmarks` as production-faithful equivalents of `build_simple`/`build_random` that do not require any crate's test-support. `display_map`/`editor_render` now call the new functions instead, and `benchmarks` requests `multi_buffer/benchmarks` instead of `multi_buffer/test-support`. `build_random_for_benchmarks` is a dedicated duplicate of `randomly_edit_excerpts`, substituting a vendored `BenchmarkRandomCharIter` for `util::RandomCharIter` (the only test-support-only dependency it has), guarded against drift by a new parity test asserting byte-identical output against `build_random` for the same rng sequence. Extends script/check-gpui-bench-feature-isolation to prove the direct benchmarks -> multi_buffer/test-support edge is gone and that multi_buffer's benchmarks feature itself resolves no test-support. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| LICENSE-GPL | ||