Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tokenizers/sentencepiece: Improve performance by removing allocations
``` goos: linux goarch: amd64 pkg: github.com/nlpodyssey/cybertron/pkg/tokenizers/sentencepiece/internal/sentencepiece cpu: Intel(R) Xeon(R) CPU E5-2697 v4 @ 2.30GHz │ old.txt │ new.txt │ │ sec/op │ sec/op vs base │ SentencePiece/compose_email_to_joh-36 2235.6µ ± 1% 147.1µ ± 1% -93.42% (p=0.000 n=10) │ old.txt │ new.txt │ │ B/op │ B/op vs base │ SentencePiece/compose_email_to_joh-36 3289.19Ki ± 0% 27.02Ki ± 0% -99.18% (p=0.000 n=10) │ old.txt │ new.txt │ │ allocs/op │ allocs/op vs base │ SentencePiece/compose_email_to_joh-36 1830.00 ± 0% 92.00 ± 0% -94.97% (p=0.000 n=10) ```
- Loading branch information