Closed Bug 1704909 Opened 3 years ago Closed 3 years ago

Use a Box<[f32; 256] instead of a Vec.

Categories

(Core :: Graphics: Color Management, defect)

defect

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: jrmuizel, Assigned: jrmuizel)

Details

Attachments

(1 file)

This gives a known length at compile time at the cost of slightly
worse ergonomics. Knowing the length should let the compiler drop
some bounds checks and will make it easier to make some of the
transform functions safe.

This gives a known length at compile time at the cost of slightly
worse ergonomics. Knowing the length should let the compiler drop
some bounds checks and will make it easier to make some of the
transform functions safe.

Attachment #9215597 - Attachment description: Bug 1704909 - Use a Box<[f32; 256] instead of a Vec. → Bug 1704909 - Use a Box<[f32; 256]> instead of a Vec.
Pushed by jmuizelaar@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9e5434bc1ef2
Use a Box<[f32; 256]> instead of a Vec. r=aosmond
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: