Open Bug 1504571 Opened 6 years ago Updated 2 years ago

use Arc<[T]> instead of Arc<Box<[T]>> in various places

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: heycam, Unassigned)

References

Details

Bug 1504034 makes the representation of the quotes property be Arc<Box<[QuotePair]>>.  It would be nice to use Arc<[QuotePair]> instead (and similar types in other places where we have Arc<Box<[T]>>), to avoid the extra indirection / allocation.  We should probably port the standard library's `impl<'a, T: Clone> From<&'a [T]> for Arc<[T]>` and `impl<T> From<Vec<T>> for Arc<[T]>` to servo_arc::Arc for this.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.