Skip to content

Conversation

@mag1c-h
Copy link
Contributor

@mag1c-h mag1c-h commented Dec 18, 2025

Summary

  1. Parallelize block-existence checks to cut latency on bulk operations.
  2. Add timeout guards that raise a Python exception when the deadline is exceeded.

Details

  • Issue: sequential existence checks become a bottleneck when the caller asks for hundreds/thousands of blocks.
  • Fix: dispatch all Lookup calls to a thread-pool and wait for the batch with a configurable timeout.
  • Behavior change: if any single check or the whole batch exceeds timeout_ms, a pybind11::timeout_error is propagated to the Python side.

@mag1c-h mag1c-h requested a review from ygwpz as a code owner December 18, 2025 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants