Skip to content

Extract best-pair selection from _encode_chunk into find_best_pair() for clarity#97

Open
manoogim wants to merge 1 commit intokarpathy:masterfrom
manoogim:encode-granularity
Open

Extract best-pair selection from _encode_chunk into find_best_pair() for clarity#97
manoogim wants to merge 1 commit intokarpathy:masterfrom
manoogim:encode-granularity

Conversation

@manoogim
Copy link

@manoogim manoogim commented Aug 7, 2025

This refactor was motivated by the subtle and easily misunderstood behavior around terminating conditions when no valid merges remain. By isolating this logic, the termination condition becomes easier to reason about.

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.

1 participant