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

Convert SerdeElision to KnowledgeIndex #759

Merged
merged 3 commits into from
May 9, 2023

Conversation

srchase
Copy link
Contributor

@srchase srchase commented May 8, 2023

Converts SerdeElision validation class to a KnowledgeIndex.

The use of the KnowledgeIndex fixes out of memory errors resulting from the existing SerdeElision class, which creates an unbounded number of model instances.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@srchase srchase requested review from a team as code owners May 8, 2023 15:37
@srchase srchase force-pushed the serde-elision-knwledge-index branch from 5545a57 to 72331a5 Compare May 8, 2023 15:44
@srchase srchase force-pushed the serde-elision-knwledge-index branch from 72331a5 to a24367f Compare May 8, 2023 15:45
* incompatible shapes or traits that require additional handling, its serde
* function may be emitted.
*/
public class SerdeElisionIndex implements KnowledgeIndex {
Copy link
Contributor

Choose a reason for hiding this comment

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

should this say that this is only for JSON?

@srchase srchase merged commit b7ae994 into smithy-lang:main May 9, 2023
@srchase srchase deleted the serde-elision-knwledge-index branch May 9, 2023 20:51
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.

4 participants