micro/tunnel
Vasiliy Tolstov 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
..
broker [WIP]: broker ErrorHandler option (#1296) 2020-03-06 21:25:16 +00:00
transport fix import paths for v2 release 2020-01-30 14:44:40 +03:00
crypto_test.go tunnel: reduce allocation and improve performance (#1320) 2020-03-09 17:10:08 +00:00
crypto.go tunnel: reduce allocation and improve performance (#1320) 2020-03-09 17:10:08 +00:00
default.go tunnel: reduce allocation and improve performance (#1320) 2020-03-09 17:10:08 +00:00
link.go prune util/log and user logger (#1237) 2020-02-23 13:45:20 +00:00
listener.go tunnel: reduce allocation and improve performance (#1320) 2020-03-09 17:10:08 +00:00
options.go fix import paths for v2 release 2020-01-30 14:44:40 +03:00
session.go tunnel: reduce allocation and improve performance (#1320) 2020-03-09 17:10:08 +00:00
tunnel_test.go fix import paths for v2 release 2020-01-30 14:44:40 +03:00
tunnel.go fix import paths for v2 release 2020-01-30 14:44:40 +03:00