Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove.dups in strech() suffers from performance issue #180

Open
psychelzh opened this issue Sep 13, 2024 · 0 comments
Open

remove.dups in strech() suffers from performance issue #180

psychelzh opened this issue Sep 13, 2024 · 0 comments

Comments

@psychelzh
Copy link

Reproducible example

When add remove.dups = TRUE, stretch() costs too much time:

x <- matrix(rnorm(100 * 206), nrow = 100) |> as.data.frame()
cors <- corrr::correlate(x, quiet = TRUE)
system.time(corrr::stretch(cors))
#>    user  system elapsed 
#>    0.02    0.00    0.08
system.time(corrr::stretch(cors, remove.dups = TRUE))
#>    user  system elapsed 
#>    1.79    0.19    6.72

Created on 2024-09-13 with reprex v2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant