We also read memory mapping sequentially (well, this is a bit redumdant)
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 21 Feb 2008 20:26:21 +0000 (20:26 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 21 Feb 2008 20:26:21 +0000 (20:26 +0000)
modules/access/mmap.c

index 8742e65..1881068 100644 (file)
@@ -211,6 +211,7 @@ static block_t *Block (access_t *p_access)
         msleep (INPUT_ERROR_SLEEP);
         return NULL;
     }
+    posix_madvise (addr, length, POSIX_MADV_SEQUENTIAL);
 
     block_t *block = block_mmap_Alloc (addr, length);
     if (block == NULL)