I going to reuse a pricer instances and put them to a sync.Pool
In the same time I receiving the encryptedPrice as []byte so on conversion to string it creates an allocation.
Here I extracted a separate method DecodeRaw() that can work directly with []byte.
But also it can reuse a buffer and count of allocations significantly reduced.
Under a heavy load this is a very good thing
I going to reuse a pricer instances and put them to a sync.Pool In the same time I receiving the encryptedPrice as []byte so on conversion to string it creates an allocation. Here I extracted a separate method DecodeRaw() that can work directly with []byte. But also it can reuse a buffer and count of allocations significantly reduced. Under a heavy load this is a very good thing