22x speed improvement, 3X mem impovement

data = apply(matrix(as.character(1:90000), ncol= 300), 1, paste, collapse = " ")
system.time(readPartition(data))
system.time(readPartition.old(data))
faster parsing
replace require with library

require is used only when there is a way to recover from a failure to
load a package. Since these examples would all fail if any of the
missing libraries were required, using require only delays the error
and makes it less clear.
implemented using matrices and vectorized calls wherever possible
for rstudio users
vectorized version, 36s 10 slices 10^6 per slice. The older version takes 30 sec on 1/10th of data.