|
43b0dbb123
|
tunnel: reduce allocation and improve performance (#1320)
* tunnel: reduce allocation and improve performance
BenchmarkSha256Old-16 100000 156748 ns/op 11835 B/op 168 allocs/op
BenchmarkSha256Old-16 100000 156229 ns/op 11819 B/op 168 allocs/op
BenchmarkSha256New-16 100000 154751 ns/op 11107 B/op 161 allocs/op
BenchmarkSha256New-16 100000 154263 ns/op 11110 B/op 161 allocs/op
simple change lowers allocations and brings performance
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* tunnel: reuse buf in Decrypt
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix unneeded conversations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* base32 string is smaller than hex string
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
|
2020-03-09 17:10:08 +00:00 |
|