[Python.NET] [Pythonnet] Python to c# long conversion time

2022-06-27 Thread Jordan GUILLOT
Hi, I'm using Pythonnet to import proprietary python package from Windows Application. When my python package return a large byte array in C# world, the type conversion takes lot of time. To illustrate this long conversion time, I made a simple example: 1. A Python package with a method whi

[Python.NET] Re: [Pythonnet] Python to c# long conversion time

2022-06-27 Thread LOST _
Please, use myPyByteArray.GetBuffer() and the PyBuffer.Read method to copy from a NumPy array. I created a feature request to make the default conversion mechanism take advantage of PyBuffer some time in the future. Regards,Victor From: Jordan GUILLOTSent: Monday, June 27, 2022 8:19 AMTo: pythonnet