Skip to content

add LazyPatchedArray#7298

Closed
a10y wants to merge 2 commits intodevelopfrom
aduffy/lazy-patched
Closed

add LazyPatchedArray#7298
a10y wants to merge 2 commits intodevelopfrom
aduffy/lazy-patched

Conversation

@a10y
Copy link
Copy Markdown
Contributor

@a10y a10y commented Apr 6, 2026

First step as part of replacing arrays with interior patches with wrapped PatchedArray in backward-compatible fashion.

We create a new wrapper array, LazyPatchedArray. This only lives in-memory as an execution shim to bridge old-style Patches to new-style PatchedArray.

The follow up to this PR will update the VTable::build() method to return ArrayRef, and update BitPacked::build() to return either BitPackedArray with interior Patches, or PatchedArray wrapping BitPacked, based on an experimental flag.

@a10y a10y added the changelog/skip Do not list PR in the changelog label Apr 6, 2026
@a10y a10y marked this pull request as draft April 6, 2026 17:41
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
@a10y a10y force-pushed the aduffy/lazy-patched branch from 0af3001 to 36e5ac9 Compare April 6, 2026 17:59
@a10y a10y marked this pull request as ready for review April 6, 2026 18:00
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
Copy link
Copy Markdown
Contributor

@gatesn gatesn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want to just replace e.g. fastlanes.bitpacked with a new deserializer that returns Patched(BitPacked) ?

@a10y
Copy link
Copy Markdown
Contributor Author

a10y commented Apr 6, 2026

what is a deserializer?

@a10y a10y closed this Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/skip Do not list PR in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants