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

databendlabs / openraft / 19359053211

14 Nov 2025 08:14AM UTC coverage: 92.046% (+0.4%) from 91.658%
19359053211

push

github

xp-trumpet
refactor: optimize client responder management with VecDeque-based queue (#1336)

This commit addresses issue #1336 by replacing the BTreeMap-based client
responder storage with an optimized queue structure that leverages VecDeque
with binary search for efficient range extraction.

- Add `ClientResponderQueue`

### Core Changes
- **RaftCore**: Uses `ClientResponderQueue` instead of `BTreeMap`

### Benefits
- Faster insertion (O(1) vs O(log n))
- Faster extraction (O(log n + k) vs O(m))
- Better cache locality (contiguous memory)

- Fix: #1336

133 of 137 new or added lines in 4 files covered. (97.08%)

23 existing lines in 4 files now uncovered.

12856 of 13967 relevant lines covered (92.05%)

133120.19 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

89.64
/openraft/src/core/raft_core.rs


Source Not Available

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

© 2025 Coveralls, Inc