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

Various fixes #64

Merged
merged 13 commits into from
Dec 11, 2024
Merged

Various fixes #64

merged 13 commits into from
Dec 11, 2024

Conversation

pulsejet
Copy link
Collaborator

@pulsejet pulsejet commented Dec 9, 2024

Not for review yet - will also need tag on go-ndn

@zjkmxy
Copy link
Member

zjkmxy commented Dec 9, 2024

What's the reason for copying the frame?

@pulsejet
Copy link
Collaborator Author

pulsejet commented Dec 9, 2024

What's the reason for copying the frame?

The ndnlp link service uses a single outgoing buffer that is passed to the downstream transport (to save mallocgc; I profiled this and the overhead was significant ~5%). The downstream transport must synchronously copy the buffer to OS memory.

https://github.com/named-data/YaNFD/blob/62198cd97f861ecf5439be6a03e18b6261804b91/face/ndnlp-link-service.go#L269

In this case it loops back to us, so we need to copy it ourselves.

Copy link
Member

@zjkmxy zjkmxy left a comment

Choose a reason for hiding this comment

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

LGTM till now

@pulsejet
Copy link
Collaborator Author

Thanks for taking a look @zjkmxy , I was worried the changes are a bit too wild to review easily xD

Almost done now for this PR, just need a new tag on go-ndn. Next PR I'll check/fix the other transports (likely only unix works at the moment)

@zjkmxy
Copy link
Member

zjkmxy commented Dec 10, 2024

will also need tag on go-ndn

Tagged as v0.0.8

@pulsejet pulsejet marked this pull request as ready for review December 11, 2024 08:20
@pulsejet pulsejet mentioned this pull request Dec 11, 2024
16 tasks
@zjkmxy zjkmxy merged commit 7ac630f into named-data:master Dec 11, 2024
6 checks passed
@pulsejet pulsejet deleted the varun/patch-1 branch December 24, 2024 04:44
pulsejet pushed a commit that referenced this pull request Dec 24, 2024
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