Repository navigation
docs(vendored): update bam_codec comments to reflect noodles#364 closure - #182
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #182 +/- ##
==========================================
- Coverage 85.65% 85.65% -0.01%
==========================================
Files 128 128
Lines 51983 52001 +18
==========================================
+ Hits 44526 44541 +15
- Misses 7457 7460 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (4)
📝 WalkthroughWalkthroughModule-level documentation updated in four files across two crate locations. Changes state the BAM codec is vendored from noodles-bam, note that the upstream encode-expose PR was closed, recommend 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR #364 (expose record codec encode/decode) was closed upstream — the maintainer recommended Reader::from(src) for decoding instead. Update vendored module docs to remove #364 from the pending-PR list and explain why the vendored bam_codec is retained: encode_record_buf is still needed for the raw-byte-mode optimization path.
45201e8 to
6ae4650
Compare
Replace the vendored bam_codec::decode with noodles' public Reader::from(src).read_record_buf() API, as recommended by the noodles maintainer when closing PR #364. The vendored decoder was only used in the non-raw-byte-mode path of decode_records(), which is not exercised by any production command (all use raw_byte_mode=true). Removing it eliminates 20 vendored files (~1850 lines) that would need to be diffed on every noodles version bump. The vendored encoder (encode_record_buf) is retained — it provides ~30% CPU savings in the raw-byte-mode write path and has no upstream equivalent until noodles#367 lands. Follows up on #182.
Replace the vendored bam_codec::decode with noodles' public Reader::from(src).read_record_buf() API, as recommended by the noodles maintainer when closing PR #364. The vendored decoder was only used in the non-raw-byte-mode path of decode_records(), which is not exercised by any production command (all use raw_byte_mode=true). Removing it eliminates 20 vendored files (~1850 lines) that would need to be diffed on every noodles version bump. The vendored encoder (encode_record_buf) is retained — it provides ~30% CPU savings in the raw-byte-mode write path and has no upstream equivalent until noodles#367 lands. Follows up on #182.
Replace the vendored bam_codec::decode with noodles' public Reader::from(src).read_record_buf() API, as recommended by the noodles maintainer when closing PR #364. The vendored decoder was only used in the non-raw-byte-mode path of decode_records(), which is not exercised by any production command (all use raw_byte_mode=true). Removing it eliminates 20 vendored files (~1850 lines) that would need to be diffed on every noodles version bump. The vendored encoder (encode_record_buf) is retained — it provides ~30% CPU savings in the raw-byte-mode write path and has no upstream equivalent until noodles#367 lands. Follows up on #182.
Replace the vendored bam_codec::decode with noodles' public Reader::from(src).read_record_buf() API, as recommended by the noodles maintainer when closing PR #364. The vendored decoder was only used in the non-raw-byte-mode path of decode_records(), which is not exercised by any production command (all use raw_byte_mode=true). Removing it eliminates 20 vendored files (~1850 lines) that would need to be diffed on every noodles version bump. The vendored encoder (encode_record_buf) is retained — it provides ~30% CPU savings in the raw-byte-mode write path and has no upstream equivalent until noodles#367 lands. Follows up on #182.
…PI (#185) Replace the vendored bam_codec::decode with noodles' public Reader::from(src).read_record_buf() API, as recommended by the noodles maintainer when closing PR #364. The vendored decoder was only used in the non-raw-byte-mode path of decode_records(), which is not exercised by any production command (all use raw_byte_mode=true). Removing it eliminates 20 vendored files (~1850 lines) that would need to be diffed on every noodles version bump. The vendored encoder (encode_record_buf) is retained — it provides ~30% CPU savings in the raw-byte-mode write path and has no upstream equivalent until noodles#367 lands. Follows up on #182.
Summary
encode_record_bufis still needed for the raw-byte-mode optimization pathRecordBufencoding) lands upstreamTest plan
cargo build --releasepasses