Skip to content

Commit

Permalink
Merge pull request #6 from espadolini/lazy-load
Browse files Browse the repository at this point in the history
Generate embedded vocabulary maps lazily
  • Loading branch information
bluescreen10 authored May 10, 2024
2 parents 70d9b59 + 93a9139 commit 7f65fe7
Show file tree
Hide file tree
Showing 8 changed files with 200,875 additions and 200,821 deletions.
1 change: 1 addition & 0 deletions codec/cl100k_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package codec
import "github.com/dlclark/regexp2"

func NewCl100kBase() *Codec {
cl100kBaseVocabOnce.Do(cl100kBaseVocabInit)
return &Codec{
name: "cl100k_base",
vocabulary: cl100kBaseVocab,
Expand Down
Loading

0 comments on commit 7f65fe7

Please sign in to comment.