Skip to content

Conversation

nvie
Copy link
Owner

@nvie nvie commented Mar 22, 2025

This is a work in progress. It will allow major perf optimizations, because we can avoid deep copying large input structures when this is desired.

@nvie nvie self-assigned this Mar 22, 2025
@nvie nvie marked this pull request as draft March 22, 2025 09:42
@nvie nvie changed the base branch from main to array-perf March 22, 2025 09:42
) => DecodeResult<O> | Decoder<O>);

export interface ReadonlyDecoder<T> extends Decoder<T> {
readonly isReadonly: true;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This property can be accessed at runtime, to change the behavior of composite decoders like array or object to not perform a deep copy later.

Base automatically changed from array-perf to main March 24, 2025 19:01
@nvie nvie force-pushed the readonly branch 2 times, most recently from 945d416 to 47a9a06 Compare March 26, 2025 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant