Skip to content

Put a custom @property in place of slotted @cached_property for documentation purposes#1512

Closed
clayote wants to merge 56 commits into
python-attrs:mainfrom
clayote:cache_property
Closed

Put a custom @property in place of slotted @cached_property for documentation purposes#1512
clayote wants to merge 56 commits into
python-attrs:mainfrom
clayote:cache_property

[pre-commit.ci] auto fixes from pre-commit.com hooks

9729fe4
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis completed Feb 20, 2026 in 0s

Performance Regression: -82.07%

⚡ 2 improved benchmarks
❌ 1 regressed benchmark
✅ 12 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
test_create_cached_property_class 2 s 1.7 s +19.84%
test_first_access 6.4 ms 2.3 ms ×2.8
test_repeated_access 238.5 µs 1,330.1 µs -82.07%

Comparing clayote:cache_property (9729fe4) with main (c44b8b0)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (fb9ea67) during the generation of this report, so c44b8b0 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.