阅读背景:

具有numpy数组的Pythonic垃圾收集如何附加和删除?

来源:互联网 

I am trying to adapt the underlying structure of plotting code (matplotlib) that is updated on a timer to go from using Python lists for the plot data to using numpy arrays. I want to be able to lower the time step for the plot as much as possible, and since the data may get up into the thousands of points, I start to lose valuable time fast if I can't. I know that numpy arrays are preferred for this sort of thing, but I am having trouble figuring out when I need to think like a Python programmer and when I need to think like a C++ programmer maximize my efficiency of memory access.I am trying to adapt the underlying structure o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: