Skip to content

Bump Tiktoken from 2.0.3 to 3.1.5#147

Merged
MarkZither merged 1 commit into
mainfrom
dependabot/nuget/src/MarkZither.Rag.Chunking/Tiktoken-3.1.5
May 26, 2026
Merged

Bump Tiktoken from 2.0.3 to 3.1.5#147
MarkZither merged 1 commit into
mainfrom
dependabot/nuget/src/MarkZither.Rag.Chunking/Tiktoken-3.1.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 21, 2026

Copy link
Copy Markdown
Contributor

Updated Tiktoken from 2.0.3 to 3.1.5.

Release notes

Sourced from Tiktoken's releases.

3.1.5

What's Changed

Full Changelog: tryAGI/Tiktoken@v3.1.4...v3.1.5

3.1.4

Full Changelog: tryAGI/Tiktoken@v3.1.3...v3.1.4

3.1.3

Full Changelog: tryAGI/Tiktoken@v3.1.2...v3.1.3

3.1.2

Full Changelog: tryAGI/Tiktoken@v3.1.1...v3.1.2

3.1.1

Full Changelog: tryAGI/Tiktoken@v3.1.0...v3.1.1

3.1.0

Full Changelog: tryAGI/Tiktoken@v3.0.0...v3.1.0

3.1.0-rc.1

Full Changelog: tryAGI/Tiktoken@v3.0.0...v3.1.0-rc.1

3.0.0

Highlights

Peak throughput: 618 MiB/s — up to 42x faster than other .NET tokenizers on multilingual/CJK text.

Performance improvements

  • O(n log n) min-heap BPE merge — replaces O(n²) linear scan in FindParts, improving cold-path CJK/multilingual by ~13%
  • Restored ASCII fast path — fixes a 35% regression on cached CJK/multilingual text introduced in v2.3.0
  • Cache speedup: 5-13x on repeated multilingual/CJK text (was 4-9x)

CountTokens — zero allocation

Input Tiktoken Throughput vs competitors
Hello, World! (13 B) 88 ns 141 MiB/s 1.9-3.6x
Multilingual (382 B) 1.1 us 339 MiB/s 4.7-13.6x
CJK-heavy (1,676 B) 2.6 us 618 MiB/s 14.3-42.3x
Python code (879 B) 5.5 us 153 MiB/s 1.8-4.0x
Multilingual long (4,312 B) 9.0 us 458 MiB/s 7.9-31.6x
Bitcoin whitepaper (19,884 B) 105.1 us 180 MiB/s 2.4-3.8x

New

  • ColdPath benchmark project — dedicated benchmark for cache vs no-cache comparison
  • SmokeTest project — local perf regression guard using machine-independent cache speedup ratios
  • Aho-Corasick investigation — research document on alternative tokenization approaches

Cross-language context (Apple M4 Max, o200k_base)

Implementation Encode Throughput CountTokens Throughput
Tiktoken .NET (cached) 114-484 MiB/s 141-618 MiB/s
Tiktoken .NET (no cache) 44-145 MiB/s 47-155 MiB/s
tiktoken Rust v3 34-88 MiB/s
GitHub bpe Rust v0.3 33-64 MiB/s 29-66 MiB/s
OpenAI tiktoken Python 0.12 7-20 MiB/s

Commits viewable in compare view.

@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels May 21, 2026
@github-actions

github-actions Bot commented May 21, 2026

Copy link
Copy Markdown

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 1 package(s) with unknown licenses.
See the Details below.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 3073c0d.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

License Issues

src/MarkZither.Rag.Chunking/MarkZither.Rag.Chunking.csproj

PackageVersionLicenseIssue Type
Tiktoken3.1.5NullUnknown License

OpenSSF Scorecard

PackageVersionScoreDetails
nuget/Tiktoken 3.1.5 UnknownUnknown

Scanned Files

  • src/MarkZither.Rag.Chunking/MarkZither.Rag.Chunking.csproj

---
updated-dependencies:
- dependency-name: Tiktoken
  dependency-version: 3.1.5
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/nuget/src/MarkZither.Rag.Chunking/Tiktoken-3.1.5 branch from 97b9ded to 3073c0d Compare May 26, 2026 16:26
@MarkZither

Copy link
Copy Markdown
Owner

@dependabot squash and merge

@MarkZither
MarkZither merged commit dfb061f into main May 26, 2026
6 of 7 checks passed
@MarkZither
MarkZither deleted the dependabot/nuget/src/MarkZither.Rag.Chunking/Tiktoken-3.1.5 branch May 26, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant