rstimecourse2: memory improvements