Skip to content

perf: tablebase addto: avoid re-writing INDEXBLOCK for every added el… - #907

Merged
jodavies merged 1 commit into
form-dev:masterfrom
jodavies:tablebase-write-size
Sep 15, 2026
Merged

jodavies merged 1 commit into
form-dev:masterfrom
jodavies:tablebase-write-size

Conversation

@jodavies

Copy link
Copy Markdown
Collaborator

…ement

Previously, FORM re-wrote the ~330KiB INDEXBLOCK to the file for every single added element. For this reason, it has been extremely ill-advised to write a TableBase to, for eg, network storage.

Resolve this by marking the INDEXBLOCK as dirty, using the existing flags, and write and flush to file only at the end of AddTo.

…ement

Previously, FORM re-wrote the ~330KiB INDEXBLOCK to the file for every single
added element. For this reason, it has been extremely ill-advised to write
a TableBase to, for eg, network storage.

Resolve this by marking the INDEXBLOCK as dirty, using the existing flags,
and write and flush to file only at the end of AddTo.
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 65.838% (+0.1%) from 65.735% — jodavies:tablebase-write-size into form-dev:master

@jodavies
jodavies merged commit 1e1e88a into form-dev:master Sep 15, 2026
106 checks passed
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