Settings.cs 727 B

12345678910111213141516171819
  1. /* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Text;
  10. namespace DiskAccessLibrary
  11. {
  12. public class Settings
  13. {
  14. // Note: The benefits beyond 16MB buffer are not very significant,
  15. // e.g. 512MB will only give ~5.6% speed boost over 64MB, ~7.9% over 32MB, and ~10.1% over 16MB.
  16. public static int MaximumTransferSizeLBA = 65536; // 32 MB (assuming 512-byte sectors)
  17. }
  18. }