Skip to content

cleanup: centralize tokenization loop and check for interrupts - #4

Merged
piki merged 1 commit into
mainfrom
cfi
Sep 18, 2026
Merged

piki merged 1 commit into
mainfrom
cfi

Conversation

@eeeebbbbrrrr

Copy link
Copy Markdown
Collaborator

This adds a check_for_interrupts!() every 10 documents during tokenization. It's nice to be able to ^C something that's slow.

Also centralizes the two code paths that do this into a single function.

@piki
piki merged commit a51ba8e into main Sep 18, 2026
8 checks passed
@piki
piki deleted the cfi branch September 18, 2026 13:43
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