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

Performance issue: purrr::flatten #1102

Closed
JLHerreraCortijo opened this issue Sep 22, 2023 · 1 comment
Closed

Performance issue: purrr::flatten #1102

JLHerreraCortijo opened this issue Sep 22, 2023 · 1 comment

Comments

@JLHerreraCortijo
Copy link

After purrr::flatten has been superseded, something is impacting its performance. When you profile this code

for(i in 1:1000){
 x <-  purrr::flatten(list(a=list(1,2,3),b=list("a","b","c")))
  
}

The data shows a call to utils::readCitationFile() consuming much time.

Platform: posit cloud
RStudio version: RStudio Pro 2023.06.1 Build 524.pro1
R version output:

platform       x86_64-pc-linux-gnu         
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          4                           
minor          3.1                         
year           2023                        
month          06                          
day            16                          
svn rev        84548                       
language       R                           
version.string R version 4.3.1 (2023-06-16)
nickname       Beagle Scouts   
@hadley
Copy link
Member

hadley commented Nov 1, 2023

Duplicate of r-lib/lifecycle#167

@hadley hadley marked this as a duplicate of r-lib/lifecycle#167 Nov 1, 2023
@hadley hadley closed this as completed Nov 1, 2023
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

2 participants