Fast data transfer to pynq buffer

Hello,

I am using pynq 2.7 on an rfsoc4x2 board.

I need to transfer data to a pynq buffer that has been previously allocated.
I can do something like:

pynq_buffer[0:(grad_output.shape[0]*grad_output.shape[1])] = support_pynq_b

But it takes around 10 ms for 284032 data values.

I was wondering if there is any other way of doing this that is faster ? Thanks