Skip to content

perf(store): reserve the prekey map for a batch insert - #1270

Merged
jlucaso1 merged 4 commits into
mainfrom
claude/prekeys-batch-hashmap-reserve-co85yl
Aug 10, 2026
Merged

perf(store): reserve the prekey map for a batch insert#1270
jlucaso1 merged 4 commits into
mainfrom
claude/prekeys-batch-hashmap-reserve-co85yl

perf(store): reserve for a prekey batch only when its ids are distinct

4dfd8b5
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis succeeded Aug 10, 2026 in 0s

Performance Gate Passed

✅ 236 untouched benchmarks
🆕 6 new benchmarks
⏩ 2 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
🆕 Memory store_prekeys_batch[64] N/A 5.3 KB N/A
🆕 Memory store_prekeys_batch[812] N/A 41.1 KB N/A
🆕 Memory store_prekeys_batch/populated N/A 82.1 KB N/A
🆕 Simulation store_prekeys_batch[64] N/A 13.2 µs N/A
🆕 Simulation store_prekeys_batch[812] N/A 96.5 µs N/A
🆕 Simulation store_prekeys_batch/populated N/A 163.5 µs N/A

Comparing claude/prekeys-batch-hashmap-reserve-co85yl (4dfd8b5) with main (5f15719)

Open in CodSpeed

Footnotes

  1. 2 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.