Commit 01b0c6a
perf(database): inline events-silence toggle in find collection lookup
The opening line of find() wrapped getCollection in silent(fn () => ...)
solely to suppress the CollectionRead event. The closure allocation
showed up alongside Authorization::skip in the profile, both for the
same reason: a tiny flag toggle hidden behind a callable.
Set/restore eventsSilenced directly. With both inlines together,
order_cursor drops another ~15% wall time.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 13e4edb commit 01b0c6a
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2125 | 2125 | | |
2126 | 2126 | | |
2127 | 2127 | | |
2128 | | - | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
2129 | 2137 | | |
2130 | 2138 | | |
2131 | 2139 | | |
| |||
0 commit comments