Closed JanMarvin closed 6 years ago
Currently after a string is read, iconv is called. This already reduced the iconv overhead, still iconv is called for every n. Since R's implementation of iconv is used, it could be run on the full vector after it was read.
pull the full vector and push using SET_VECTOR_ELT just as in read_sav_unknown_n.
SET_VECTOR_ELT
read_sav_unknown_n
Fixed in master
Currently after a string is read, iconv is called. This already reduced the iconv overhead, still iconv is called for every n. Since R's implementation of iconv is used, it could be run on the full vector after it was read.