Make a funky BoxyDataPayload type for DateTimeFormat #3600
Labels
A-design
Area: Architecture or design
A-performance
Area: Performance (CPU, Memory)
C-datetime
Component: datetime, calendars, time zones
question
Unresolved questions; type unclear
Milestone
Part of #3413
We discussed that DateTimeFormat stack size could be reduced by using a type that behaves like DataPayload, but its yoke variant is boxed. DateTimeFormat would then use it instead for symbols data.
In a future where #3128 happens we can still benefit from this by using a struct-of-borrows type. (effectively a
Yoke<SymbolsDataBorrowed, Option<Box<SymbolsData>>>
whereSymbolsDataBorrowed
is a struct full of borrows of the individual types)In a future where we are
no_alloc
, the boxing optimization can be disabled inno_alloc
mode.This should be an internal change, though it may result in a new public DataPayload type.
The text was updated successfully, but these errors were encountered: