From: Bruce S. <bas...@nc...> - 2010-10-30 05:25:15
|
Here's an even simpler routine that shows memory leakage: from visual import * xs = ones(100000, float) c = curve(x=xs, visible=True) And here's the important point: Change to visible=False, and there is no memory leak. That means that the problem is in the rendering of the curve, which is done about 25 times per second. The leak occurs with both the default radius (1 pixel) and with a specified radius, which is particularly interesting because these two cases have large chunks of different code for rendering. Also highly interesting is the observation that changing the 100000 to 10 makes no difference in the leak rate. Bruce Sherwood |