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

WIP: replaced stdlib encoding/json by jsoniter #108

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fredbi
Copy link
Member

@fredbi fredbi commented Oct 28, 2019

Experimental: measure perf increase

Signed-off-by: Frederic BIDON [email protected]

schema_loader.go Outdated
data, err := swag.LoadFromFileOrHTTP(path)
if err != nil {
return nil, err
}
return json.RawMessage(data), nil
return stdjson.RawMessage(data), nil

Choose a reason for hiding this comment

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

return statements should not be cuddled if block has more than two lines (from wsl)

expander_test.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented Jan 9, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (ed00e71) 65.43% compared to head (3942079) 65.35%.

Files Patch % Lines
schema_loader.go 42.85% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #108      +/-   ##
==========================================
- Coverage   65.43%   65.35%   -0.08%     
==========================================
  Files          29       29              
  Lines        2844     2849       +5     
==========================================
+ Hits         1861     1862       +1     
- Misses        820      823       +3     
- Partials      163      164       +1     
Flag Coverage Δ
oldstable 65.35% <63.63%> (-0.08%) ⬇️
stable 65.35% <63.63%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

2 participants