I am having the following problem:
I have implemented a protobuff to send data from a golang client to a python server using a grpc stream. The data I am sending needs to be loaded quickly on the python server and processed. This data is a composite field with the largest part being a repeated sint array defined as such: repeated sint32 array = 4 [packed=true];
This field contains around 18,000,000 entries and when I try to load these into my code using the following line: data = np.array(array_obj, dtype=np.int8) this process takes around 1.5 SECONDS. I have tried alternative methods of first reading the data as a list, which is also not faster, using copy=False in numpy... I just want to access the memory where these values are stored...
Thankful for any help