我正在尝试用Python进行高速memcpy。我使用ctypes库,该库允许我与C程序进行交互。
我按照以下步骤操作:
结果是正确的,但我需要更高的速度。没有使用C的方法,有没有更快的方法?
谢谢。
我在这篇文章中找到了一个解决方案:
How to read from pointer address in Python?
以张汉娜的回答。