Commit d0367c6
perf(database): inline silent() in getDocument collection lookup
Same change as the other silent() inlines: getDocument calls
silent(fn () => \$this->getCollection(\$collection)) on every read,
which costs a Closure allocation per call. Replace with a direct
flag toggle.
This finally clears the per-find Closure tax — complex_query_nested
drops from ~2.0s to ~1.3s (a 34% improvement) on the focus bench
once silent and authorization toggles are both inlined.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent af6ee56 commit d0367c6
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
174 | 180 | | |
175 | 181 | | |
176 | 182 | | |
| |||
0 commit comments