1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00
go-micro/registry
Vasiliy Tolstov 1fbc056dd4
minimize allocations (#1472)
* server: minimize allocations on re-register

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* server: stop old instance before Init()

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* client/grpc: fix allocations in protobuf marshal

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* codec/json: fix allocations in protobuf marshal

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* remove stop from init

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* codec/grpc: expose MaxMessageSize

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* codec: use buffer pool

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* metadata: minimize reallocations

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* util/wrapper: use metadata helper

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* registry/cache: move logs to debug level

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* server: move logs to debug level

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* server: cache service only when Advertise is ip addr

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* server: use metadata.Copy

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-04-08 10:50:19 +01:00
..
cache minimize allocations (#1472) 2020-04-08 10:50:19 +01:00
etcd Update etcd.go (#1334) 2020-03-12 10:09:38 +00:00
kubernetes minimize allocations in logger and tunnel code (#1323) 2020-03-11 17:55:39 +00:00
mdns fix import paths for v2 release 2020-01-30 14:44:40 +03:00
memory minimize allocations in logger and tunnel code (#1323) 2020-03-11 17:55:39 +00:00
service regenerate all proto (#1440) 2020-03-30 21:58:32 +01:00
encoding_test.go used gofmt with -s flag on whole project 2019-11-01 15:07:53 +00:00
encoding.go Set MDNS as default registry 2019-01-15 16:50:37 +00:00
mdns_registry.go add mdns registry debug (#1434) 2020-03-27 22:33:49 +03:00
mdns_test.go config/source/cli: fix tests (#1179) 2020-02-08 02:45:32 +03:00
mdns_watcher.go Remove go routines for mdns watcher and cache registry (#919) 2019-11-06 15:49:40 +00:00
options.go registry: [gossip] add ConnectRetry and ConnectTimeout 2019-02-12 17:16:35 +03:00
registry.go Move global vars to the top of the src file: conventions 2019-09-23 20:48:25 +01:00
service.go Remove Port from registry 2019-07-08 08:01:42 +01:00
util_test.go Remove Port from registry 2019-07-08 08:01:42 +01:00
util.go fixes https://github.com/micro/go-micro/issues/793 2019-09-30 10:36:43 +08:00
watcher_test.go config/source/cli: fix tests (#1179) 2020-02-08 02:45:32 +03:00
watcher.go Add registry event to registry package 2019-09-23 20:48:25 +01:00