Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to lazily parse a SET from a ASN1Node #32

Merged
merged 1 commit into from
Jun 29, 2023
Merged

Conversation

dnadoba
Copy link
Member

@dnadoba dnadoba commented Jun 29, 2023

Motiviation

We want reduce allocations in swift-certificates and need a way to parse without allocating an intermediate Array.

Modifications

add DER.lazySet(of:identifier:rootNode) which returns its result without allocating.

Result

We can eliminate allocations during parsing

### Motiviation
We want reduce allocations in swift-certificates and need a way to parse without allocating an intermediate `Array`.

### Modifications
add `DER.lazySet(of:identifier:rootNode)` which returns its result without allocating.

### Result
We can eliminate allocations during parsing
@Lukasa Lukasa merged commit 8dd3d31 into main Jun 29, 2023
@Lukasa Lukasa deleted the dn-lazy-set branch June 29, 2023 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants