Skip to content

Commit 99bc45f

Browse files
authored
Use self-descriptive cache with type tags (#20137)
This should make our cache format more future proof w.r.t lazy deserialization and other features: * This makes cache ~5% larger (data + meta) * This makes interpreted performance ~5% worse (just the serialization steps, *not* overall time) * No visible performance impact when compiled (probably because all extra indirections like `read_str()` -> `read_str_bare()` etc are C calls). Note that I now serialize various little arbitrary JSON blobs (like plugin data etc) using fixed format, since with the tags we can do this.
1 parent 49e9a9b commit 99bc45f

File tree

4 files changed

+529
-210
lines changed

4 files changed

+529
-210
lines changed

0 commit comments

Comments
 (0)