Releases: Bios-Marcel/discordemojimap
Releases · Bios-Marcel/discordemojimap
v2.0.6
v2.0.3
v2.0.2
Performance of Replace
has been improved:
$ go test -bench .
goos: linux
goarch: amd64
pkg: github.com/Bios-Marcel/discordemojimap/v2
cpu: Intel(R) Xeon(R) CPU E3-1240 v5 @ 3.50GHz
BenchmarkOldRegexReplace/#0-8 529662966 2.119 ns/op 0 B/op 0 allocs/op
BenchmarkOldRegexReplace/:-8 562242958 2.119 ns/op 0 B/op 0 allocs/op
BenchmarkOldRegexReplace/::-8 560172386 2.111 ns/op 0 B/op 0 allocs/op
BenchmarkOldRegexReplace/a-8 4222231 282.3 ns/op 32 B/op 3 allocs/op
BenchmarkOldRegexReplace/Hello-8 9712930 122.4 ns/op 32 B/op 3 allocs/op
BenchmarkOldRegexReplace/Hello_:-8 7362687 158.6 ns/op 32 B/op 3 allocs/op
BenchmarkOldRegexReplace/abcdefghijklmnopqrstuvwxyz-8 8798866 132.5 ns/op 80 B/op 3 allocs/op
BenchmarkOldRegexReplace/What_a_::_world.-8 5877451 199.2 ns/op 48 B/op 3 allocs/op
BenchmarkOldRegexReplace/:invalidinvalid:-8 2267084 528.4 ns/op 48 B/op 3 allocs/op
BenchmarkOldRegexReplace/sunglasses-8 2676921 447.5 ns/op 32 B/op 3 allocs/op
BenchmarkOldRegexReplace/:SUNGLASSES:-8 2465899 483.8 ns/op 48 B/op 4 allocs/op
BenchmarkOldRegexReplace/hello_sunglasses-8 2432456 510.4 ns/op 56 B/op 4 allocs/op
BenchmarkOldRegexReplace/Hello_sunglasses:-8 2223170 534.9 ns/op 56 B/op 4 allocs/op
BenchmarkOldRegexReplace/Hello_sunglasses:lol-8 1958610 613.4 ns/op 56 B/op 4 allocs/op
BenchmarkOldRegexReplace/sunglasses_hello-8 2417283 497.3 ns/op 56 B/op 4 allocs/op
BenchmarkOldRegexReplace/sunglasses_sunglasses-8 1463247 849.2 ns/op 56 B/op 4 allocs/op
BenchmarkOldRegexReplace/sunglassessunglasses-8 1569716 771.7 ns/op 32 B/op 3 allocs/op
BenchmarkOldRegexReplace/sunglasses_hello_sunglasses-8 1453222 827.0 ns/op 56 B/op 4 allocs/op
BenchmarkReplace/#0-8 456109473 2.502 ns/op 0 B/op 0 allocs/op
BenchmarkReplace/:-8 477770264 2.471 ns/op 0 B/op 0 allocs/op
BenchmarkReplace/::-8 479816523 2.491 ns/op 0 B/op 0 allocs/op
BenchmarkReplace/a-8 18159888 64.08 ns/op 16 B/op 2 allocs/op
BenchmarkReplace/Hello-8 100000000 11.18 ns/op 0 B/op 0 allocs/op
BenchmarkReplace/Hello_:-8 77989821 13.97 ns/op 0 B/op 0 allocs/op
BenchmarkReplace/abcdefghijklmnopqrstuvwxyz-8 23748142 45.20 ns/op 0 B/op 0 allocs/op
BenchmarkReplace/What_a_::_world.-8 38792818 28.92 ns/op 0 B/op 0 allocs/op
BenchmarkReplace/:invalidinvalid:-8 16568445 70.53 ns/op 0 B/op 0 allocs/op
BenchmarkReplace/sunglasses-8 15391990 73.19 ns/op 8 B/op 2 allocs/op
BenchmarkReplace/:SUNGLASSES:-8 8460679 138.5 ns/op 21 B/op 3 allocs/op
BenchmarkReplace/hello_sunglasses-8 12378336 92.98 ns/op 32 B/op 2 allocs/op
BenchmarkReplace/Hello_sunglasses:-8 12268077 94.12 ns/op 32 B/op 2 allocs/op
BenchmarkReplace/Hello_sunglasses:lol-8 12187016 98.29 ns/op 32 B/op 2 allocs/op
BenchmarkReplace/sunglasses_hello-8 12785275 92.82 ns/op 32 B/op 2 allocs/op
BenchmarkReplace/sunglasses_sunglasses-8 9208495 128.3 ns/op 40 B/op 2 allocs/op
BenchmarkReplace/sunglassessunglasses-8 9561540 125.1 ns/op 24 B/op 2 allocs/op
BenchmarkReplace/sunglasses_hello_sunglasses-8 8692407 140.7 ns/op 40 B/op 2 allocs/op
PASS
ok github.com/Bios-Marcel/discordemojimap/v2 52.090s
v2.0.1
This is basically the same as v2.0.0, but now it's properly consumable.
v1.0.1
The package now exposes the emoji mapping. The map isn't meant to be for mutation.