[rygel] core: Buffer 65K instead of 4K



commit 94e00c9e5d52e89f7dcddb5e5b3d6b95d3b9489f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Mar 23 15:17:21 2010 +0200

    core: Buffer 65K instead of 4K
    
    Bigger buffer means less cpu usage and therefore better battery life.

 src/rygel/rygel-seekable-response.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-seekable-response.vala b/src/rygel/rygel-seekable-response.vala
index 710cb80..52c7b20 100644
--- a/src/rygel/rygel-seekable-response.vala
+++ b/src/rygel/rygel-seekable-response.vala
@@ -25,7 +25,7 @@
 using GUPnP;
 
 internal class Rygel.SeekableResponse : Rygel.HTTPResponse {
-    private const size_t BUFFER_LENGTH = 4096;
+    private const size_t BUFFER_LENGTH = 65536;
 
     private HTTPSeek seek;
     private File file;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]