Skip to content

Commit

Permalink
Improve memory estimation for cpp linker action
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mgalindo committed Jun 21, 2024
1 parent 56c4e60 commit c50b5cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ private LazyData doCostlyEstimation() {
case LINUX:
resourceSet =
ResourceSet.createWithRamCpu(
/* memoryMb= */ Math.max(50, -100 + 0.1 * inputsCount), /* cpu= */ 1);
/* memoryMb= */ 100 + 2.4 * (inputsBytes / 1024.0 / 1024.0), /* cpuUsage= */ 1);
break;
default:
resourceSet =
Expand Down

0 comments on commit c50b5cf

Please sign in to comment.