perf: use fixed [u8; 64] array for light buffer data #709

Open
SakulFlee wants to merge 1 commit from perf/light-descriptor-fixed-array into main
Owner

LightDescriptor::to_buffer_data() was allocating a Vec and extending
it 16 times per light. Since the output is always exactly 64 bytes,
now returns a fixed-size array with no heap allocation.

LightDescriptor::to_buffer_data() was allocating a Vec and extending it 16 times per light. Since the output is always exactly 64 bytes, now returns a fixed-size array with no heap allocation.
perf: use fixed [u8; 64] array for light buffer data
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
a1f69f2a46
LightDescriptor::to_buffer_data() was allocating a Vec and extending
it 16 times per light. Since the output is always exactly 64 bytes,
now returns a fixed-size array with no heap allocation.
Some checks are pending
ci/woodpecker/push/linting Pipeline was successful
ci/woodpecker/pr/test
Required
ci/woodpecker/pr/linting
Required
This pull request has changes conflicting with the target branch.
  • Crates/orbital_resources/src/light/descriptor.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin perf/light-descriptor-fixed-array:perf/light-descriptor-fixed-array
git switch perf/light-descriptor-fixed-array
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!709
No description provided.