Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #77706 > unrolled thread

Re: weakref, memory management and execution slow down in PyQt4

Started byMichael Torrie <torriem@gmail.com>
First post2014-09-08 17:51 -0600
Last post2014-09-08 17:51 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: weakref, memory management and execution slow down in PyQt4 Michael Torrie <torriem@gmail.com> - 2014-09-08 17:51 -0600

#77706 — Re: weakref, memory management and execution slow down in PyQt4

FromMichael Torrie <torriem@gmail.com>
Date2014-09-08 17:51 -0600
SubjectRe: weakref, memory management and execution slow down in PyQt4
Message-ID<mailman.13880.1410220299.18130.python-list@python.org>
On 09/07/2014 02:39 PM, kjs wrote:
> The code is minimal[0]. The only other widgets are a start button that
> fires off the plotting and a stop button that calls sys.exit().

Unfortunately there are no data files in your git repository so I can't
run it.

> 
> Lines 112-114 appear to be causing the weakref proliferation.

Is there a reason you are using setattr and getattr instead of a proper
data structure?  both of those calls are rather expensive.  Would
probably be cheaper to use some kind of array, dictionary, or other
purpose-built data structure?

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web