Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
dotnet
/
machinelearning
Public
Notifications
You must be signed in to change notification settings
Fork
2k
Star
9.4k
Code
Issues
736
Pull requests
25
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Add heap-based BPE merge path for large inputs (>128 bytes)
- #7580
#7580
Merged
tarekgh
merged 16 commits into
main
dotnet/machinelearning:main
from
copilot/fix-byte-pair-encoding-performance
dotnet/machinelearning:copilot/fix-byte-pair-encoding-performance
Copy head branch name to clipboard
Feb 14, 2026
Conversation
Commits
16
(16)
Checks
Files changed
Merged
Add heap-based BPE merge path for large inputs (>128 bytes)
#7580
tarekgh
merged 16 commits into
main
dotnet/machinelearning:main
from
copilot/fix-byte-pair-encoding-performance
dotnet/machinelearning:copilot/fix-byte-pair-encoding-performance
Copy head branch name to clipboard
Commits
Commits on Feb 12, 2026
Initial plan
Copilot
committed
35fd6b9
View commit details
Copy full SHA for 35fd6b9
Browse repository at this point
Implement heap-based byte pair encoding for large inputs
Show description for d2d5f40
Copilot
and
stephentoub
committed
d2d5f40
View commit details
Copy full SHA for d2d5f40
Browse repository at this point
Add tests for large input BPE optimization
Show description for d47b417
Copilot
and
stephentoub
committed
d47b417
View commit details
Copy full SHA for d47b417
Browse repository at this point
Address code review feedback - improve test coverage and optimize heap capacity
Show description for dbd8ad2
Copilot
and
stephentoub
committed
dbd8ad2
View commit details
Copy full SHA for dbd8ad2
Browse repository at this point
Commits on Feb 13, 2026
Remove timing-based performance test to prevent CI flakiness
Show description for 604bc90
Copilot
and
stephentoub
committed
604bc90
View commit details
Copy full SHA for 604bc90
Browse repository at this point
Add explanatory comments for threshold and heap capacity choices
Show description for 8c0543d
Copilot
and
stephentoub
committed
8c0543d
View commit details
Copy full SHA for 8c0543d
Browse repository at this point
Apply suggestion from @stephentoub
stephentoub
authored
058c10b
View commit details
Copy full SHA for 058c10b
Browse repository at this point
Use default capacity for PriorityQueue instead of pre-allocating to max
Show description for 93697d0
Copilot
and
stephentoub
committed
93697d0
View commit details
Copy full SHA for 93697d0
Browse repository at this point
Apply suggestion from @stephentoub
stephentoub
authored
507035a
View commit details
Copy full SHA for 507035a
Browse repository at this point
Update src/Microsoft.ML.Tokenizers/Utils/BytePairEncoder.cs
Show description for 394658e
stephentoub
and
Copilot
authored
394658e
View commit details
Copy full SHA for 394658e
Browse repository at this point
Update src/Microsoft.ML.Tokenizers/Utils/BytePairEncoder.cs
Show description for f339af1
stephentoub
and
Copilot
authored
f339af1
View commit details
Copy full SHA for f339af1
Browse repository at this point
Fix CompareTo ordering, revert BOM changes, and update test comments
Show description for a43a57e
Copilot
and
stephentoub
committed
a43a57e
View commit details
Copy full SHA for a43a57e
Browse repository at this point
Add parameterless PriorityQueue constructor and use it in BytePairEncodeLarge
Show description for bd86b94
Copilot
and
tarekgh
committed
bd86b94
View commit details
Copy full SHA for bd86b94
Browse repository at this point
Add comment noting that CurRank assumes rank == token Id (Tiktoken-specific)
Show description for 8984a3d
Copilot
and
tarekgh
committed
8984a3d
View commit details
Copy full SHA for 8984a3d
Browse repository at this point
Remove stackalloc for State array; always use ArrayPool since method is only called for >128 bytes
Show description for f43f8ee
Copilot
and
tarekgh
committed
f43f8ee
View commit details
Copy full SHA for f43f8ee
Browse repository at this point
Replace List+ToArray with ArrayPool for result buffer in BytePairEncodeLarge
Show description for 99c5107
Copilot
and
tarekgh
committed
99c5107
View commit details
Copy full SHA for 99c5107
Browse repository at this point
You can’t perform that action at this time.