Thu, 05 Jul 2007 22:58:27 +0400
Stas Sergeev <[EMAIL PROTECTED]> kirjoitti:

> Maybe something like the attached patch
> can do instead? I haven't tested, but it
> seems in case of (ctxp->active && IS_STREAM_TRACE)
> the select() is never executed at all, so
> 100% of CPU will be consumed no matter what.
> I did such a patch for the server interface,
> and it was applied. Of course it doesn't
> make it inevitably correct, but noone complained
> since, and consuming 100% of CPU is certainly
> unacceptable.
> Though for the server interface I managed to
> reduce the CPU usage much further with a few
> simple tricks.

Yes, looks better. I tried not to modify anything else, but just make
it not poll when idle, so I left that condition of bypassing select()
altogether alone.

For me, this patch seems to work just as well and is less complex code,
so I'm all for it.

-- 
Niko Kiirala
[EMAIL PROTECTED]
http://niko.kiirala.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Timidity-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/timidity-talk

Reply via email to