simplify and inline read_size, add a long string to test a limit, 20% speedup