precompile line splitting regex

precompiling regexp for performance reasons
@demmer @alfred-landrum