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

Nng url no alloc #1937

Merged
merged 3 commits into from
Nov 18, 2024
Merged

Nng url no alloc #1937

merged 3 commits into from
Nov 18, 2024

Conversation

gdamore
Copy link
Contributor

@gdamore gdamore commented Nov 18, 2024

fixes #

Note that the above format should be used in your git commit comments.
You agree that by submitting a PR, you have read and agreed to our
contributing guidelines.

Also expose nng_url_sprintf() for users who need it.

This avoids some need to do dynamic memory on some things.  Soon
the entirety of nng_url will be allocation free in the usual case.
@gdamore gdamore force-pushed the nng-url-no-alloc branch 3 times, most recently from 32de662 to b3e0ce9 Compare November 18, 2024 15:56
Copy link

codecov bot commented Nov 18, 2024

Codecov Report

Attention: Patch coverage is 84.44444% with 21 lines in your changes missing coverage. Please review.

Project coverage is 81.04%. Comparing base (85aff44) to head (ca6cfe3).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/core/url.c 86.23% 15 Missing ⚠️
src/supplemental/http/http_msg.c 75.00% 3 Missing ⚠️
src/nng.c 0.00% 2 Missing ⚠️
src/core/listener.c 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1937      +/-   ##
==========================================
- Coverage   81.30%   81.04%   -0.26%     
==========================================
  Files          94       94              
  Lines       23946    23951       +5     
  Branches     3189     3187       -2     
==========================================
- Hits        19469    19412      -57     
- Misses       4406     4464      +58     
- Partials       71       75       +4     

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


🚨 Try these New Features:

This eliminates most (but not all) of the dynamic allocations
associated with URL objects.  A number of convenience fields
on the URL are removed, but we are able to use common buffer
for most of the details.
@gdamore gdamore merged commit ca6cfe3 into main Nov 18, 2024
18 of 19 checks passed
@gdamore gdamore deleted the nng-url-no-alloc branch November 18, 2024 16: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.

1 participant