Agniva De Sarker
7be61af24f
MM-25516: Changed to byte slice instead of string for cluster messages ( #17998 )
...
* MM-25516: Changed to byte slice instead of string for cluster messages
https://mattermost.atlassian.net/browse/MM-25116
Testing:
Manually tested.
Load-tested with Cluster Controller.
I looked into changing the serialization method to use msgpack,
but the ClusterMessage struct was mainly used for only 3 fields
which didn't lead to much of a CPU time improvement, whereas
actually led to more allocations using msgpack. Hence, I chose
to remain with JSON.
```
name old time/op new time/op delta
ClusterMarshal-8 3.51µs ± 1% 3.10µs ± 2% -11.59% (p=0.000 n=9+10)
name old alloc/op new alloc/op delta
ClusterMarshal-8 776B ± 0% 1000B ± 0% +28.87% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
ClusterMarshal-8 12.0 ± 0% 13.0 ± 0% +8.33% (p=0.000 n=10+10)
```
```release-note
Changed the field type of Data in model.ClusterMessage to []byte from string.
```
* Trigger CI
```release-note
NONE
```
2021-07-26 13:41:20 +05:30
..
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2020-07-17 10:00:43 +03:00
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-23 12:35:59 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-26 13:41:02 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2020-07-22 13:50:33 +05:30
2021-07-23 12:35:59 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-02-09 11:58:31 +01:00
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2020-06-01 12:01:05 +02:00
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2019-11-29 12:59:40 +01:00
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2020-12-03 11:38:00 +01:00
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2020-12-03 11:38:00 +01:00
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2020-09-14 12:53:42 -06:00
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2020-08-19 13:54:46 +02:00
2021-07-26 13:41:20 +05:30
2021-07-26 13:41:02 +05:30
2020-06-22 14:06:37 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-23 19:54:51 +03:00
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-26 13:41:02 +05:30
2020-06-23 12:56:52 +03:00
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 10:24:20 -04:00
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2020-12-03 11:38:00 +01:00
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 10:24:20 -04:00
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-26 13:41:02 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30