Skip to content

Conversation

@dean-starkware
Copy link

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@dean-starkware dean-starkware force-pushed the dean/file_level_batching branch 4 times, most recently from f5578a9 to 553f337 Compare November 25, 2025 13:23
@dean-starkware dean-starkware force-pushed the dean/file_level_batching branch from 553f337 to d159a05 Compare November 26, 2025 08:27
@dean-starkware dean-starkware force-pushed the dean/file_level_batching branch from da95b09 to 94ade78 Compare November 27, 2025 14:22
@dean-starkware dean-starkware force-pushed the dean/file_level_batching branch 6 times, most recently from d5b2181 to 554ed58 Compare November 30, 2025 07:27
Before: 1000 separate transactions (1000 commits = SLOW)
After: 1 transaction with 1000 writes (1 commit = FAST!)

Changes:
- Separate batch items by type before writing
- Open ONE transaction
- Write all headers, state diffs, and casms
- Commit ONCE
- Post-process compiled classes (class manager) and base layer blocks

This should reduce batch flush time from minutes to seconds!
@dean-starkware dean-starkware force-pushed the dean/file_level_batching branch 3 times, most recently from 30dae23 to 6df6488 Compare December 2, 2025 14:25
@dean-starkware dean-starkware force-pushed the dean/file_level_batching branch from 6df6488 to 7aa671f Compare December 3, 2025 11:15
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