[pygtk] ListStore iter vs. path
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Dec 4 15:32:40 WST 2007
Caleb Marcus wrote:
> One question I have is, what's
> the difference between iters and paths?
At a guess, I'd say that iters are likely to be more
efficient, as they can hook directly into the underlying
data structure, whereas a path requires some sort of
lookup operation each time it's used. Whether this
difference remains detectable amongst all the other
overhead of Python/C interfacing is uncertain,
though.
I'd say just use whichever is more convenient for
you, and only worry about performance if it becomes
an issue.
--
Greg
More information about the pygtk
mailing list