@@ -247,29 +247,29 @@ export function getOptimizedConfig(): PerformanceConfig {
247
247
if ( cpuCount >= 8 ) {
248
248
config . allocationConcurrency = Math . min (
249
249
30 ,
250
- config . allocationConcurrency * 1.5 ,
250
+ Math . round ( config . allocationConcurrency * 1.5 ) ,
251
251
)
252
252
config . deploymentConcurrency = Math . min (
253
253
25 ,
254
- config . deploymentConcurrency * 1.5 ,
254
+ Math . round ( config . deploymentConcurrency * 1.5 ) ,
255
255
)
256
256
} else if ( cpuCount <= 2 ) {
257
257
config . allocationConcurrency = Math . max (
258
258
5 ,
259
- config . allocationConcurrency * 0.5 ,
259
+ Math . round ( config . allocationConcurrency * 0.5 ) ,
260
260
)
261
261
config . deploymentConcurrency = Math . max (
262
262
5 ,
263
- config . deploymentConcurrency * 0.5 ,
263
+ Math . round ( config . deploymentConcurrency * 0.5 ) ,
264
264
)
265
265
}
266
266
267
267
// Adjust cache size based on available memory
268
268
const memoryGB = totalMemory / ( 1024 * 1024 * 1024 )
269
269
if ( memoryGB >= 16 ) {
270
- config . cacheMaxSize = Math . min ( 5000 , config . cacheMaxSize * 2 )
270
+ config . cacheMaxSize = Math . min ( 5000 , Math . round ( config . cacheMaxSize * 2 ) )
271
271
} else if ( memoryGB <= 4 ) {
272
- config . cacheMaxSize = Math . max ( 500 , config . cacheMaxSize * 0.5 )
272
+ config . cacheMaxSize = Math . max ( 500 , Math . round ( config . cacheMaxSize * 0.5 ) )
273
273
}
274
274
275
275
return config
0 commit comments