-
Notifications
You must be signed in to change notification settings - Fork 884
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify and optimize _byte_pair_merge
We're already calculating the min during construction of the first pairs. Because of this minimum calculation is moved to the end of the loop. Since we've filtered out single tokens, we can safely exit when the parts length is already small enough
- Loading branch information
Lőrinc
committed
Jan 15, 2024
1 parent
7398253
commit 8f5dd7d
Showing
1 changed file
with
24 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters