Repository navigation
Commit 00fef25
committed
perf(metadata-protocol): the served item read caches its caller-independent compiled answer (ADR-0156)
`getMetaItem`'s served face (the per-item read of every app bundle member)
answers a by-name read of an app, object, view, page or dashboard from a
per-engine cache while every source it reads is unchanged. The per-caller
gate, mask, translation and ETag, and the live trailers, run every request.
- objectql: `SchemaRegistry#revision`, moved by every public write; the
public methods are classified read/write once, exhaustive by type, and the
writes are wrapped (registry-revision.ts).
- metadata: `MetadataManager#revision` and `loaderChangeMark()`;
`FilesystemLoader#changeMark()` stats the type directories and files its
reads touched.
- metadata-protocol: meta-compile-cache.ts, stamped with the overlay
generation and the three counters; confirms at its bound
(`OS_METADATA_COMPILE_CACHE_TTL_MS`, 0 = uncached) with a store reading and
the loader marks, and never renews an entry it cannot confirm.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oyZgRX9Qc1ZHsMRQp1 parent 24b6ae5 commit 00fef25
14 files changed
Lines changed: 1598 additions & 14 deletions
File tree
- .changeset
- content/docs/deployment
- packages
- metadata-protocol/src
- metadata/src
- loaders
- objectql/src
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
| |||
0 commit comments