perf: avoid double allocation in texture pixel conversion #710

Open
SakulFlee wants to merge 1 commit from perf/texture-pixel-direct-write into main
Owner

Texture pixel data was converted via collect into Vec<[u8;N]> then
concatenated into Vec, creating two allocations and two passes.
Now uses flat_map to directly produce bytes in a single allocation.

Texture pixel data was converted via collect into Vec<[u8;N]> then concatenated into Vec<u8>, creating two allocations and two passes. Now uses flat_map to directly produce bytes in a single allocation.
perf: avoid double allocation in texture pixel conversion
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
6943d84664
Texture pixel data was converted via collect into Vec<[u8;N]> then
concatenated into Vec<u8>, creating two allocations and two passes.
Now uses flat_map to directly produce bytes in a single allocation.
Some checks are pending
ci/woodpecker/push/linting Pipeline was successful
ci/woodpecker/pr/test
Required
ci/woodpecker/pr/linting
Required
Some required checks are missing.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin perf/texture-pixel-direct-write:perf/texture-pixel-direct-write
git switch perf/texture-pixel-direct-write
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SakulFlee/Orbital!710
No description provided.