Skip to content

perf(core): retain GPU chunks for appended Arrow columns - #11145

Merged
ibgreen merged 3 commits into
masterfrom
codex/arrow-gpu-append
Nov 16, 2026
Merged

ibgreen merged 3 commits into
masterfrom
codex/arrow-gpu-append

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #11144

Background

Appending Arrow batches reuploads previously converted columns. Streaming layers should retain existing GPU chunks while snapshot updates replace them.

Change List

  • LayerColumns: transfer retained allocations only after successful conversion
  • Convert appended Arrow chunks and extend position bounds
  • Preserve snapshot, replacement, and invalidation behavior
  • Restore LAZ source colors in the point-cloud example
  • Update conversion-failure tests to replace Arrow inputs
  • Unit tests: upload bytes, buffer identity, ownership, asynchronous cleanup
  • Backend tests: WebGL and WebGPU streaming and SQL accessors
  • Documentation: describe append and snapshot allocation behavior

Passed 201 Node tests, 59 backend tests, build, lint, and website checks.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T03:01:20.340181Z
We couldn’t complete this review. Comment @codex review to try again.
b6c7ae0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issues were found.

Summary

Retains GPU buffers for unchanged Arrow chunks and converts only appended chunks.

  • Arrow-backed layers upload only the chunks added to a stream.
  • The point-cloud example colors points from LAS data.

Both earlier threads are addressed: committed triggers and an invalidation generation prevent stale reuse, and the new prepared-state fields now have TSDoc.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Arrow update] --> B{Reuse allowed?}
  B -->|Yes| C[Keep unchanged GPU chunks]
  C --> D[Convert appended chunks]
  B -->|No| E[Convert all chunks]
  D --> F{Current request succeeds?}
  E --> F
  F -->|Yes| G[Transfer retained allocations and replace state]
  F -->|No| H[Release new allocations only]
Loading

Reviews (3) · Last reviewed commit: "fix(core): retain Arrow conversion inval..." · Reviewed by Greptile

Comment thread modules/core/src/lib/layer-columns.ts Resolved
@coveralls

coveralls commented Nov 16, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 83.551% (+0.03%) from 83.525% — codex/arrow-gpu-append into master

@ibgreen
ibgreen merged commit fd22529 into master Nov 16, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/arrow-gpu-append branch November 16, 2026 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retain GPU chunks when Arrow data appends

2 participants