mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
font: Collection can't use segmentedlist prealloc
This commit is contained in:
@ -346,10 +346,11 @@ pub fn setSize(self: *Collection, size: DesiredSize) !void {
|
|||||||
/// small style count.
|
/// small style count.
|
||||||
///
|
///
|
||||||
/// We use a segmented list because the entry values must be pointer-stable
|
/// We use a segmented list because the entry values must be pointer-stable
|
||||||
/// to support the "alias" field in Entry. SegmentedList also lets us do
|
/// to support the "alias" field in Entry.
|
||||||
/// a prealloc which is great for performance since most happy path cases
|
///
|
||||||
/// do not use many font fallbacks.
|
/// WARNING: We cannot use any prealloc yet for the segmented list because
|
||||||
const StyleArray = std.EnumArray(Style, std.SegmentedList(Entry, 4));
|
/// the collection is copied around by value and pointers aren't stable.
|
||||||
|
const StyleArray = std.EnumArray(Style, std.SegmentedList(Entry, 0));
|
||||||
|
|
||||||
/// Load options are used to configure all the details a Collection
|
/// Load options are used to configure all the details a Collection
|
||||||
/// needs to load deferred faces.
|
/// needs to load deferred faces.
|
||||||
|
Reference in New Issue
Block a user