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

feat: lazy initialize queryParamsToAdd #1907

Merged
merged 2 commits into from
Nov 3, 2024

Conversation

TimothyMakkison
Copy link
Contributor

@TimothyMakkison TimothyMakkison commented Nov 3, 2024

Lazy initializes List<KeyValuePair<string, string?>> queryParamsToAdd only when it is used.

  • Saves 32 bytes for none query calls.

AddQueryParameters could be updated to not create interim lists and just directly update a given list. However, with a couple of changes refit could just directly write queries into a ValueStringBuilder representing the URL.

Copy link

codecov bot commented Nov 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.90%. Comparing base (6ebeda5) to head (5187fa0).
Report is 158 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1907      +/-   ##
==========================================
- Coverage   87.73%   84.90%   -2.84%     
==========================================
  Files          33       36       +3     
  Lines        2348     2504     +156     
  Branches      294      363      +69     
==========================================
+ Hits         2060     2126      +66     
- Misses        208      299      +91     
+ Partials       80       79       -1     

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

@ChrisPulman ChrisPulman merged commit e45c5f7 into reactiveui:main Nov 3, 2024
2 of 3 checks passed
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants