diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-19 23:45:38 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-19 23:45:38 +0900 |
| commit | b8fb046bd7c4cd28598bcce9f3955d834ea5d008 (patch) | |
| tree | 33237ee7c09bf36de8c54fc069371976660db663 /crates/shirabe/src/autoload/autoload_generator.rs | |
| parent | 325c75b58c05e9ef8fed51c05609dfc2bfed112d (diff) | |
| download | php-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 'crates/shirabe/src/autoload/autoload_generator.rs')
0 files changed, 0 insertions, 0 deletions
