Skip to content

Conversation

@dean-starkware
Copy link

@dean-starkware dean-starkware commented Jan 15, 2026

Implements the core storage batching system:

  • BatchConfig for configurable batch sizes
  • PendingWrite enum for queuing operations
  • StorageWriter batching logic with auto-flush
  • Batch helper functions for body and class writes
  • API mixing protection to prevent old/new API conflicts

Note: This PR combines what were originally two separate commits (core batching infrastructure + batch helper functions) into a single commit.
Why merged: The core batching infrastructure introduces the PendingWrite enum and batching logic, which immediately calls helper methods like append_transaction(), append_contract_class(), etc.
These helper methods are defined in the second commit. Splitting them into separate PRs would cause compilation errors in the first PR since it references methods that don't exist yet.
To maintain a clean, reviewable PR that compiles independently, both commits were merged into a single logical unit.

@reviewable-StarkWare
Copy link

This change is Reviewable

@github-actions
Copy link

github-actions bot commented Jan 15, 2026

@dean-starkware dean-starkware force-pushed the dean/01-mmap-append-batch branch 2 times, most recently from 9916e33 to 250d059 Compare January 18, 2026 09:55
@dean-starkware dean-starkware force-pushed the dean/02-batching-infrastructure branch 3 times, most recently from 993165f to 1c4a122 Compare January 18, 2026 11:00
@dean-starkware dean-starkware force-pushed the dean/02-batching-infrastructure branch from 1c4a122 to 72dc69a Compare January 18, 2026 11:26
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.

3 participants