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

fix benchmark regression (#43) #44

Merged
merged 3 commits into from
Aug 1, 2022

Conversation

tayloraswift
Copy link
Owner

@tayloraswift tayloraswift commented Aug 1, 2022

this pull request is meant to reproduce the regression in #43, and provide a patch fix

@@ -45,7 +45,7 @@ extension JSON
/// even when applied to third-party collection types, like
/// ``/swift-nio/NIOCore/ByteBufferView``.
public
enum Rule<Location>
enum Rule<Location>:ParsingRule
Copy link
Owner Author

Choose a reason for hiding this comment

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

code with JSON.Rule<Location> implementing the root ParsingRule:

workflow run

 Build complete! (37.48s)
swift-json: decoded 38295 messages
foundation: decoded 38295 messages
swift-json decoding time: 2.875409557 seconds
foundation decoding time: 3.795551295 seconds

// enum Root:ParsingRule
// {
public
enum Root:ParsingRule
Copy link
Owner Author

Choose a reason for hiding this comment

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

code with JSON.Rule<Location>.Root implementing ParsingRule:

workflow run

 [15/16] Linking benchmark
Build complete! (45.71s)
swift-json: decoded 38295 messages
foundation: decoded 38295 messages
swift-json decoding time: 0.482016238 seconds
foundation decoding time: 4.450682692 seconds

@tayloraswift tayloraswift merged commit 578137c into master Aug 1, 2022
@tayloraswift tayloraswift deleted the reproduce-benchmark-regression branch May 24, 2024 02:18
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