mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-15 22:52:35 +00:00
test: retain allocation reuse in the Contract performance baseline
This commit is contained in:
1 parent
d781e3ae09
commit
977585aa24
4 files changed
+8
-10
No files matched your search
@@ -11,7 +11,7 @@ fn old_expand(m: &[f32], w: usize, h: usize, r: f32) -> Vec<f32> {
|
||||
}
|
||||
fn old_contract(m: &[f32], w: usize, h: usize, r: f32) -> Vec<f32> {
|
||||
let inv: Vec<f32> = m.iter().map(|v| 1.0 - v).collect();
|
||||
old_expand(&inv, w, h, r).iter().map(|v| 1.0 - v).collect()
|
||||
old_expand(&inv, w, h, r).into_iter().map(|v| 1.0 - v).collect()
|
||||
}
|
||||
fn old_border(m: &[f32], w: usize, h: usize, r: f32) -> Vec<f32> {
|
||||
let inside: Vec<bool> = m.iter().map(|v| *v >= 0.5).collect();
|
||||
|
||||
+2
-2
@@ -296,7 +296,7 @@ what an agent can't finish alone.
|
||||
### G2. Interactive performance
|
||||
- **Measured progress (2026-10-26):** Expand, Contract and Border restrict distance work to
|
||||
the nonzero bounds plus a radius halo. Small radii use capped distances; Contract avoids
|
||||
inverted float masks and Border retains one distance plane. On 36 MP, twelve synthetic
|
||||
inverted float masks and Border retains one distance plane. On 36 MP, eight synthetic
|
||||
comparisons measure 1.54–37.82× faster with exact output equality. Full-canvas mask
|
||||
conversion and output remain; no GUI budget or readiness percentage changes.
|
||||
[Method, measurements and limits](selection-distance-performance.md#cropped-selection-morphology-2026-10-26).
|
||||
@@ -396,7 +396,7 @@ what an agent can't finish alone.
|
||||
|
||||
| Date | Change | Summary |
|
||||
|---|---|---|
|
||||
| 2026-10-26 | minor | Expand/Contract/Border distance work cropped to nonzero bounds; bounded distances for radii ≤5; 36 MP exact-output comparisons improve 1.54–37.82× across twelve cases; percentages, estimates and scorecard budgets unchanged |
|
||||
| 2026-10-26 | minor | Expand/Contract/Border distance work cropped to nonzero bounds; bounded distances for radii ≤5; 36 MP exact-output comparisons improve 1.54–37.82× across eight cases; percentages, estimates and scorecard budgets unchanged |
|
||||
| 2026-10-25 | minor | G9: the count of preferences that do nothing is the scorecard's again, 12 of 178 (it still said 24 of 171, from 2026-10-15); no estimate changed |
|
||||
| 2026-10-25 | minor | G6: Art History Brush landed as partial (TOOL-213-20, #1610), so no toolbar tool is missing; no percentage or estimate changed |
|
||||
| 2026-10-23 | minor | G4: hard-round built-in presets use 5% spacing (#8842), guarded by large-stroke outline and pressure-opacity pixel regressions at 8/16/32-bit; percentages and estimates unchanged |
|
||||
|
||||
@@ -117,19 +117,17 @@ Measurements from [scratch CI job 121583341033](https://github.com/wanikhawar/ph
|
||||
2026-10-26, commit `5afd231138368f9be856e8c21c2946f2e386797c`, GitHub-hosted Ubuntu 26.04,
|
||||
stable Rust, normal release profile. The benchmark step completed successfully; the
|
||||
superseded run was cancelled during the later quick performance build. The full validation
|
||||
run is recorded in the PR. Times below are milliseconds; all twelve outputs match exactly.
|
||||
run is recorded in the PR. Times below are milliseconds; this table reports Expand and Border (eight cases).
|
||||
All twelve output comparisons, including Contract, matched exactly. The current benchmark
|
||||
also times Contract using its original owning iterator so allocation reuse is preserved.
|
||||
|
||||
| Selection | Operation | Radius | Before p50 | After p50 | Speedup |
|
||||
|---|---|---:|---:|---:|---:|
|
||||
| 50×50 | Expand | 3 | 359.55 | 94.51 | 3.80× |
|
||||
| 50×50 | Contract | 3 | 614.64 | 81.47 | 7.54× |
|
||||
| 50×50 | Border | 3 | 738.30 | 19.52 | 37.82× |
|
||||
| 50×50 | Expand | 50 | 357.84 | 99.76 | 3.59× |
|
||||
| 50×50 | Contract | 50 | 601.19 | 81.19 | 7.41× |
|
||||
| 50×50 | Border | 50 | 738.50 | 20.08 | 36.79× |
|
||||
| 4000×4000 | Expand | 3 | 416.83 | 171.26 | 2.43× |
|
||||
| 4000×4000 | Contract | 3 | 615.49 | 283.26 | 2.17× |
|
||||
| 4000×4000 | Border | 3 | 802.48 | 377.78 | 2.12× |
|
||||
| 4000×4000 | Expand | 50 | 414.50 | 268.96 | 1.54× |
|
||||
| 4000×4000 | Contract | 50 | 610.98 | 260.77 | 2.34× |
|
||||
| 4000×4000 | Border | 50 | 784.89 | 467.06 | 1.68× |
|
||||
@@ -363,7 +363,7 @@ i7-9750H, 12 workers, 24 MP RGBA8, Good quality, amount 1: Spin 66.10 → 16.43
|
||||
(4.02×), Zoom 19.19 → 5.35 s (3.59×), one paired run each, exact output equality.
|
||||
These are local measurements at amount 1; see [method and limits](radial-blur-performance.md).
|
||||
|
||||
2026-10-26: cropped Expand, Contract and Border measure 1.54–37.82× faster across twelve
|
||||
2026-10-26: cropped Expand, Contract and Border measure 1.54–37.82× faster across eight
|
||||
36 MP synthetic mask cases on GitHub Actions, with exact output equality. Radii up to 5 px
|
||||
use capped distances; Contract avoids inverted float masks and Border retains one distance
|
||||
plane. Full-canvas mask conversion/output remain; no GUI budget or percentage changes.
|
||||
@@ -580,7 +580,7 @@ See [method, raw measurements and reproduction](five-algorithm-performance.md).
|
||||
|
||||
| Date | Change | Summary |
|
||||
|---|---|---|
|
||||
| 2026-10-26 | minor | Expand/Contract/Border distance work cropped to nonzero bounds; bounded distances for radii ≤5; 36 MP exact-output comparisons improve 1.54–37.82× across twelve cases; percentages, estimates and scorecard budgets unchanged |
|
||||
| 2026-10-26 | minor | Expand/Contract/Border distance work cropped to nonzero bounds; bounded distances for radii ≤5; 36 MP exact-output comparisons improve 1.54–37.82× across eight cases; percentages, estimates and scorecard budgets unchanged |
|
||||
| 2026-10-25 | minor | UI / UX and Workspace rows: 12 of 178 preferences do nothing, the scorecard's count. Camera Raw row: the Calibration panel landed on 2026-10-13 (#5128); what is missing is per-camera colour for non-DNG cameras ([gaps.md](gaps.md) G14). Percentages and estimates unchanged |
|
||||
| 2026-10-23 | minor | Colour management and modes: PSD spot plates are stored as Photoshop stores them (ink 0 = solid), and PSDs from earlier PhotoCraft versions keep their ink (#7415 split, part 4); estimates unchanged |
|
||||
| 2026-10-23 | minor | Colour management and modes: spot plates now save and open in TIFF (#7415); estimates unchanged |
|
||||
|
||||
Reference in new issue
Block a user