Slow bootstrap calculation on Rstudio 2022.02.2 in macOS Monterey 12.4 version

##The following code take too much time to calculate. I tried to execute the same code with other but same laptop model and everything works.

X is a data frame with 1994 rows and 122 columns
X <- as.matrix(scale(X))
n <-nrow(X)
l <- ncol(X)
B <- 1000
bootstrap <-list()
corrs <- list()

Bootstrap algorithm

for (i in 1:B){
bootstrap[[i]]<- X[index,]
corrs[[i]] <- cor(bootstrap[[i]])

Best regards.