[pygtk] idle_add vs. threads_enter/threads_leave
Jason Heeris
jason.heeris at gmail.com
Wed Jul 7 08:00:38 WST 2010
Antoine Martin wrote:
> It means that most of your code is not using threads at all, only the
> bits that are *slow*
Those are the only bits that use threads anyway.
> I've lost track of your particular issue though, so maybe this is not
> suitable for your use-case? How much slow work do you do compared to the
> rest? (how many code paths, rather than raw amount)
I have two kinds of long-blocking work: reading a large file and
processing it to get a single result, and communication over a serial
port (send command, await response, times about a hundred).
— Jason
More information about the pygtk
mailing list