Skip to content

[Web] Avoid tensor-cache record copies - #20156

Open
akaashrp wants to merge 1 commit into
apache:mainfrom
akaashrp:memory/01-record-views
Open

[Web] Avoid tensor-cache record copies#20156
akaashrp wants to merge 1 commit into
apache:mainfrom
akaashrp:memory/01-record-views

Conversation

@akaashrp

Copy link
Copy Markdown
Contributor

Tensor-cache shards can contain many records. Using ArrayBuffer.slice for each entry duplicates the record before it is decoded or uploaded. Validate each record range and use a Uint8Array view into the shard instead. Preserve the original byte offset when the cache already returns a view.

Tensor-cache shards can contain many records. Using ArrayBuffer.slice for each entry duplicates the record before it is decoded or uploaded.

Validate each record range and use a Uint8Array view into the shard instead. Preserve the original byte offset when the cache already returns a view.
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.

1 participant