And always more memory efficient except for very small sequences. The thing
that's killing him for memory is the creation of 65000*numCols number of
table cell editors. Like I posted earlier, the inner loop is not the largest
problem and switching from range to xrange is going to make no diffe
On Wednesday 20 August 2003 21:56, Frederick Polgardy Jr wrote:
> Faster to create, that is. They may be a tiny hair slower to use,
> because xrange computes each index when you ask for it.
>
> On Wednesday 20 August 2003 02:52 pm, Frederick Polgardy Jr wrote:
> > Xrange provides iterator semantic
Faster to create, that is. They may be a tiny hair slower to use,
because xrange computes each index when you ask for it.
On Wednesday 20 August 2003 02:52 pm, Frederick Polgardy Jr wrote:
> Xrange provides iterator semantics without actually creating a
> sequence, so it will always be faster, b
Xrange provides iterator semantics without actually creating a sequence,
so it will always be faster, but the speed isn't noticeable to a human
in this case.
On Wednesday 20 August 2003 02:24 pm, Christian Bird wrote:
> One other thing to try would be using xrange instead of range. I'm
> not su
One problem causing slowdown is that you're making a qt call over and over
again that returns the same thing when you do self.verticalHeader(). Also,
I'm not sure which is faster, but you could try doing string formatting
instead of the hex(line_label)[2:].upper()).zfill(4) since that makes a b
See the QTable documentation for Large Tables or, more specifically,
http://doc.trolltech.com/3.2/table-bigtable-main-cpp.html for example C++ code
that handles a 1,000,000 X 1,000,000 table. You'll probably find that the
code that is slowing you down is not your loop, but the setNumCols and
se
--- Michael Pyle <[EMAIL PROTECTED]> wrote:
> Have you tried turning off screen updating while
> your doing this?
>
> self.setUpdatesEnabled( True )
> # lots of gui changes
> self.setUpdatesEnabled( False )
> self.repaint()
Yes.
[]'s
Cadu
__
Do you Yahoo!?
Hello,
I have a very simple QTable with 65536 rows. I
need to change the row labels to hex, I do this by
using the code below:
for line_label in
range(0,self.verticalHeader().count()):
self.verticalHeader().setLabel(line_label, "#" +
(hex(line_label)[2:].upper()).zfill(4) )
But I nee