• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / tg-spam / 28685346571
84%

Build:
DEFAULT BRANCH: master
Ran 03 Jul 2026 10:08PM UTC
Jobs 1
Files 41
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Jul 2026 10:06PM UTC coverage: 83.428% (-0.02%) from 83.447%
28685346571

push

github

umputun
perf: build GPT tokenizer encoder once instead of per request

tokenizer.NewEncoder parses the full BPE vocabulary on every call and the
result was discarded after each OpenAI request. Share a single encoder via
sync.OnceValues.

11 of 13 new or added lines in 1 file covered. (84.62%)

2 existing lines in 1 file now uncovered.

8543 of 10240 relevant lines covered (83.43%)

256.04 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
87.41
-0.4% lib/tgspam/openai.go

Coverage Regressions

Lines Coverage ∆ File
2
94.15
-0.23% lib/tgspam/detector.go
Jobs
ID Job ID Ran Files Coverage
1 28685346571.1 03 Jul 2026 10:08PM UTC 41
83.43
GitHub Action Run
Source Files on build 28685346571
  • Tree
  • List 41
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d3392fd4 on github
  • Prev Build on master (#28684373245)
  • Next Build on master (#28685348197)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc