From 159d0858d1b041df2c367d69fd41231f95efa179 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 13 Jan 2009 19:30:34 +0100 Subject: input_curl: use select() to eliminate busy loop during connect When decoder_run_song() (decoder_thread.c) waits for the input stream to become ready, it did that in a busy loop. Add a select() call to input_curl_buffer() during connect/handshake (i.e. before the first chunk of body data was received), to let the CPU relax. --- NEWS | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 93c4d5965..0753091e9 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,8 @@ MPD 0.14.1 - not yet released * update: - refresh stats after update - save the database even if it is empty +* input_curl: + - use select() to eliminate busy loop during connect * log: automatically append newline * fix setenv() conflict on Solaris * configure.ac: check for pkg-config before using it -- cgit v1.2.3