perf(hesai): get rid of copy when replaying /pandar_packets#379
Open
perf(hesai): get rid of copy when replaying /pandar_packets#379
/pandar_packets#379Conversation
Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>
Collaborator
Author
🟢 Self-EvaluationTests performed:
|
veqcc
reviewed
Nov 27, 2025
veqcc
reviewed
Nov 27, 2025
nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/hesai_decoder.hpp
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #379 +/- ##
==========================================
- Coverage 34.36% 32.35% -2.02%
==========================================
Files 130 131 +1
Lines 10519 10506 -13
Branches 5708 4808 -900
==========================================
- Hits 3615 3399 -216
- Misses 6188 6487 +299
+ Partials 716 620 -96
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>
Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>
veqcc
approved these changes
Nov 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type
Related Links
Description
This PR removes an unnecessary per-packet copy when replaying
/pandar_packets. Due to the conversion betweenPandarScanandNebulaPackets, a copy of the buffer (std::arrayvs.std::vector) was necessary before.Now, we reference the incoming buffer via
gsl::span, no matter ifstd::vectorfrom UDP orstd::arrayfromPandarScan.Outgoing packets are still copied.
Review Procedure
Remarks
Pre-Review Checklist for the PR Author
PR Author should check the checkboxes below when creating the PR.
Checklist for the PR Reviewer
Reviewers should check the checkboxes below before approval.
Post-Review Checklist for the PR Author
PR Author should check the checkboxes below before merging.
CI Checks