aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/plugin-class-classifier/src/ParamInfo.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-19 23:45:38 +0900
committernsfisis <nsfisis@gmail.com>2026-08-19 23:45:38 +0900
commitb8fb046bd7c4cd28598bcce9f3955d834ea5d008 (patch)
tree33237ee7c09bf36de8c54fc069371976660db663 /scripts/plugin-class-classifier/src/ParamInfo.php
parent325c75b58c05e9ef8fed51c05609dfc2bfed112d (diff)
downloadphp-shirabe-b8fb046bd7c4cd28598bcce9f3955d834ea5d008.tar.gz
php-shirabe-b8fb046bd7c4cd28598bcce9f3955d834ea5d008.tar.zst
php-shirabe-b8fb046bd7c4cd28598bcce9f3955d834ea5d008.zip
perf(semver): return the memoized interval collection by handle
Intervals::get() memoizes generateIntervals() results, but the port deep-cloned the IntervalCollection out of the cache on every hit, where PHP hands the array back by copy-on-write. On `require laravel/laravel` that is 282k calls, 99% of them hits. Store and return Arc<IntervalCollection> so a hit costs a refcount bump. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'scripts/plugin-class-classifier/src/ParamInfo.php')
0 files changed, 0 insertions, 0 deletions