]> git.sesse.net Git - vlc/commitdiff
Removed prefetch whole file advise in the file access.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 1 Aug 2009 11:52:06 +0000 (13:52 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 1 Aug 2009 11:59:38 +0000 (13:59 +0200)
On all my linux PC (debian sid and lenny) it has really bad side effects,
mostly when seeking and at startup up (slow or even blocking), and makes
sshfs unusable.

modules/access/file.c

index d85cc7d5904ace8be81c7684fa6081641d6b16fe..fc4a3c66be9724c6a37559677ef2aca2740bac35 100644 (file)
@@ -322,8 +322,6 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
             p_access->info.i_update |= INPUT_UPDATE_SIZE;
         }
 #endif
-        /* Pre-fetch until the end (within memory limits) */
-        posix_fadvise (fd, p_access->info.i_pos, 0, POSIX_FADV_WILLNEED);
     }
     return i_ret;
 }