lib/tracksperanto/buffering_reader.rb in tracksperanto-2.8.0 vs lib/tracksperanto/buffering_reader.rb in tracksperanto-2.8.1

- old
+ new

@@ -3,11 +3,10 @@ # this makes parser construction much easier. So what we do is cache some chunk of the # passed buffer and read from that. Once exhausted there will be some caching again, # and ad infinitum until the passed buffer is exhausted class Tracksperanto::BufferingReader - # By default will read in chunks of 4K - DEFAULT_BUFFER_SIZE = 10240 + DEFAULT_BUFFER_SIZE = 64 * 1024 def initialize(with_io, buffer_size = DEFAULT_BUFFER_SIZE) @io = with_io @bufsize = buffer_size @buf = StringIO.new \ No newline at end of file