ParallelExecutionMode.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // ==++==
  2. //
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. //
  5. // ==--==
  6. // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
  7. //
  8. // ParallelQueryExecutionMode.cs
  9. //
  10. // <OWNER>igoro</OWNER>
  11. //
  12. // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  13. using System;
  14. using System.Collections.Generic;
  15. using System.Text;
  16. namespace System.Linq
  17. {
  18. /// <summary>
  19. /// The query execution mode is a hint that specifies how the system should handle
  20. /// performance trade-offs when parallelizing queries.
  21. /// </summary>
  22. public enum ParallelExecutionMode
  23. {
  24. /// <summary>
  25. /// By default, the system will use algorithms for queries
  26. /// that are ripe for parallelism and will avoid algorithms with high
  27. /// overheads that will likely result in slow downs for parallel execution.
  28. /// </summary>
  29. Default = 0,
  30. /// <summary>
  31. /// Parallelize the entire query, even if that means using high-overhead algorithms.
  32. /// </summary>
  33. ForceParallelism = 1,
  34. }
  35. }