Browse Source

update buffer sizes

Luke Pulverenti 9 years ago
parent
commit
4f32b57e58

+ 1 - 2
MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs

@@ -257,8 +257,7 @@ namespace MediaBrowser.Api.Playback.Hls
             return await GetSegmentResult(state, playlistPath, segmentPath, requestedIndex, job, cancellationToken).ConfigureAwait(false);
         }
 
-        // 256k
-        private const int BufferSize = 262144;
+        private const int BufferSize = 81920;
 
         private long GetStartPositionTicks(StreamState state, int requestedIndex)
         {

+ 1 - 1
MediaBrowser.Api/Playback/Progressive/ProgressiveStreamWriter.cs

@@ -16,7 +16,7 @@ namespace MediaBrowser.Api.Playback.Progressive
         private readonly ILogger _logger;
 
         // 256k
-        private const int BufferSize = 262144;
+        private const int BufferSize = 81920;
 
         private long _bytesWritten = 0;
 

+ 2 - 2
MediaBrowser.Common/IO/StreamDefaults.cs

@@ -9,11 +9,11 @@ namespace MediaBrowser.Common.IO
         /// <summary>
         /// The default copy to buffer size
         /// </summary>
-        public const int DefaultCopyToBufferSize = 262144;
+        public const int DefaultCopyToBufferSize = 81920;
 
         /// <summary>
         /// The default file stream buffer size
         /// </summary>
-        public const int DefaultFileStreamBufferSize = 262144;
+        public const int DefaultFileStreamBufferSize = 81920;
     }
 }

+ 1 - 2
MediaBrowser.Server.Implementations/HttpServer/RangeRequestWriter.cs

@@ -28,8 +28,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
         public Action OnComplete { get; set; }
         private readonly ILogger _logger;
 
-        // 256k
-        private const int BufferSize = 262144;
+        private const int BufferSize = 81920;
 
         /// <summary>
         /// The _options

+ 1 - 2
MediaBrowser.Server.Implementations/HttpServer/StreamWriter.cs

@@ -75,8 +75,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
         {
         }
 
-        // 256k
-        private const int BufferSize = 262144;
+        private const int BufferSize = 81920;
 
         /// <summary>
         /// Writes to.