Skip to content

Commit

Permalink
Undo maxConcurrency testing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAngryByrd committed Dec 8, 2024
1 parent acc81c5 commit fa2fc6d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/FsAutoComplete.Core/Utils.fs
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,10 @@ module Async =
/// <summary>Creates an asynchronous computation that executes all the given asynchronous computations, using 75% of the Environment.ProcessorCount</summary>
/// <param name="computations">A sequence of distinct computations to be parallelized.</param>
let parallel75 computations =
// let maxConcurrency =
// Math.Max(1.0, Math.Floor((float System.Environment.ProcessorCount) * 0.75))
let maxConcurrency =
Math.Max(1.0, Math.Floor((float System.Environment.ProcessorCount) * 0.75))

// Async.Parallel(computations, int maxConcurrency)
Async.Parallel computations
Async.Parallel(computations, int maxConcurrency)

[<RequireQualifiedAccess>]
module Array =
Expand Down

0 comments on commit fa2fc6d

Please sign in to comment.