• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

databendlabs / openraft / 20397123989
88%

Build:
DEFAULT BRANCH: main
Ran 20 Dec 2025 04:40PM UTC
Jobs 1
Files 243
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Dec 2025 03:19PM UTC coverage: 92.299% (-0.1%) from 92.401%
20397123989

push

github

drmingdrmer
refactor: introduce `Batch<T>` to avoid heap allocation for single entries

Adds `Batch<T>` enum with `Single(T)` and `Vec(Vec<T>)` variants to optimize
memory allocation when storing entries. Single entries avoid heap allocation
entirely.

Changes:
- Add `Batch<T>` type in `crate::base::batch` module
- Split into submodules: `iter.rs` for iterator, `display.rs` for display
- Use `#[derive(Debug, Clone, Eq)]` with manual `PartialEq` for cross-variant equality
- Add `From` impls for `T`, `Vec<T>`, and `[T; N]` with single-element optimization
- Update `Command::AppendEntries` to use `Batch<C::Entry>` instead of `Vec<C::Entry>`

191 of 215 new or added lines in 11 files covered. (88.84%)

13 existing lines in 3 files now uncovered.

15592 of 16893 relevant lines covered (92.3%)

143553.32 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
24
79.66
openraft/src/base/batch/mod.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
96.86
-0.9% openraft/src/replication/mod.rs
3
91.55
0.12% openraft/src/engine/handler/leader_handler/mod.rs
8
90.22
-8.7% openraft/src/core/heartbeat/worker.rs
Jobs
ID Job ID Ran Files Coverage
1 20397123989.1 20 Dec 2025 04:40PM UTC 243
92.3
GitHub Action Run
Source Files on build 20397123989
  • Tree
  • List 243
  • Changed 15
  • Source Changed 12
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20397123989
  • 06911c90 on github
  • Prev Build on main (#20392179507)
  • Next Build on main (#20403508631)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc