tidyverse / haven

Read SPSS, Stata and SAS files from R
https://haven.tidyverse.org
Other
424 stars 117 forks source link

Improve vctrs performance for `labelled()` and `labelled_spss()` #664

Closed gorcha closed 2 years ago

gorcha commented 2 years ago

As discussed in #658, this PR checks if the input vectors have identical metadata (attributes) in the vctrs generics before doing any further processing. This majorly improves performance when combining subsets of the same vector, for e.g. grouped data frame operations.