Queue limitations?
Fredrik Lundh
fredrik at pythonware.com
Wed Mar 15 16:59:07 EST 2006
mateom at gmail.com wrote:
> > the queue holds references to the images, not the images themselves,
> > so the size should be completely irrelevant.I use one instance of imageQueue.
>
> hmmm.. true. And it also fails when I use PIL Image objects instead of
> arrays. Any idea why compressing the string helps?
compression and decompression takes time. sounds like you have a timing
problem, and it's probably not in the imageQueue thread. adding a couple
of print statements to strategic locations (e.g push image, pop image, write
image to disk using this filename, etc) might help you sort this one out.
</F>
More information about the Python-list
mailing list