Skip to content

Commit

Permalink
[core] Set disk cache size to 0 by default
Browse files Browse the repository at this point in the history
I'm pretty confident that we can safely keep MemoryWriter available
for people who wish to slightly improve performance and try out
this experimental feature.

Default it to 0 in size so it's effectively off. Someone can set
this to a reasonable value (5MB?) if they wish to help test it
in the real world.
  • Loading branch information
alanmcgovern committed Feb 10, 2021
1 parent 6b904da commit 889df8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MonoTorrent/MonoTorrent.Client/Settings/EngineSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ public class EngineSettings : IEquatable<EngineSettings>

/// <summary>
/// Creates a cache which buffers data before it's written to the disk, or after it's been read from disk.
/// Defaults to 5MB (5 * 1024 * 1024).
/// Experimental feature. Currently defaults 0. Recommended value when experimenting is 5MB (5 * 1024 * 1024).
/// </summary>
public int DiskCacheBytes { get; } = 5 * 1024 * 1024;
public int DiskCacheBytes { get; } = 0;

/// <summary>
/// The UDP port used for DHT communications. Use 0 to choose a random available port.
Expand Down

0 comments on commit 889df8b

Please sign in to comment.