The sizes of the error types in dicom-pixeldata were very large, which can have an impact on performance. This manages to shrink the stack memory size of GetAttributeError from 168 bytes to 64 bytes.
add test to require smaller size of GetAttributeError
Replace GetAttributeError::name type with AttributeName
Simplify GetAttributeError::MissingRequiredField
Box GetAttributeError variants Retrieve and ConvertValue
Since GetAttributeError is never made public (dependent is an opaque error type), this is not a breaking change.
The sizes of the error types in
dicom-pixeldata
were very large, which can have an impact on performance. This manages to shrink the stack memory size ofGetAttributeError
from 168 bytes to 64 bytes.GetAttributeError
GetAttributeError::name
type withAttributeName
GetAttributeError::MissingRequiredField
GetAttributeError
variantsRetrieve
andConvertValue
Since
GetAttributeError
is never made public (dependent is an opaque error type), this is not a breaking change.